+ Reply to Thread
Results 1 to 3 of 3

Adding Columns in Excel Sheet

Hybrid View

  1. #1
    Dhiraj
    Guest

    Adding Columns in Excel Sheet

    I wish to add 4 columns in an Excel Sheet on the click of a button. Can
    anyone suggest or help me in doing the same ?

  2. #2
    Vasant Nanavati
    Guest

    Re: Adding Columns in Excel Sheet

    An Excel sheet has 256 columns; no more and no less. You can't add 4
    columns.

    --

    Vasant


    "Dhiraj" <Dhiraj@discussions.microsoft.com> wrote in message
    news:61D94B97-8180-4DF6-85F4-B8B596741DBC@microsoft.com...
    >I wish to add 4 columns in an Excel Sheet on the click of a button. Can
    > anyone suggest or help me in doing the same ?




  3. #3
    phoffre@gmail.com
    Guest

    Re: Adding Columns in Excel Sheet

    Vasant is right: you can't "Add" collumns. But if you mean "Insert"
    collumns, you can do some this like this:

    Sub InsCol()
    Columns("E:H").Insert Shift:=xlToRight
    End Sub

    This will insert 4 collumns before collumn E.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1