Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Adding Columns in Excel Sheet

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

--

Vasant


"Dhiraj" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel adding up columns kinsey New Users to Excel 4 October 3rd 07 03:08 PM
adding new columns sheet with external data John New Users to Excel 0 September 23rd 05 08:00 PM
Adding new columns from one sheet to another hughvision Excel Programming 2 June 27th 05 02:15 PM
Adding Columns in Excel DNA Excel Discussion (Misc queries) 1 May 10th 05 10:05 PM
Adding Columns in Excel DNA Excel Discussion (Misc queries) 0 May 4th 05 07:26 PM


All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"