Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have opened a spreadsheet and am trying to add a column if I use the following selection.Insert Shift:=xlToRight this works on the first iteration but fails on the second with the following error object variable or with block not set. If i try the following xlWks.Columns.Insert Shift:=xlToRight i get the message cannot shift non blank cells off worksheet. However the worksheet is off limited size (36 rows and 20 columns) and is borfered by blank cells none of which have associated formula -- helenmacduff ------------------------------------------------------------------------ helenmacduff's Profile: http://www.excelforum.com/member.php...o&userid=29020 View this thread: http://www.excelforum.com/showthread...hreadid=487525 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() the selection is a method off xlapp so xlapp.selection.entirecolumns.insert works -- helenmacduff ------------------------------------------------------------------------ helenmacduff's Profile: http://www.excelforum.com/member.php...o&userid=29020 View this thread: http://www.excelforum.com/showthread...hreadid=487525 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofill column from data (code) in column next to it | Excel Worksheet Functions | |||
what is the code to delete row&column. | Excel Programming | |||
VB code to sum up all the figures in a column | Excel Programming | |||
Reference a Column in Code | Excel Programming | |||
Column Code | Excel Programming |