Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would like to create a macro that will insert 5 columns to the right of the
currently active cell. I would like to select any cell in my worksheet and run the macro and have it insert 5 columns. Any ideas? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Activecell.Offset(0,1).Resize(1,5).EntireColumn.In sert
-- --- HTH Bob (change the xxxx to gmail if mailing direct) "Kurt" wrote in message ... I would like to create a macro that will insert 5 columns to the right of the currently active cell. I would like to select any cell in my worksheet and run the macro and have it insert 5 columns. Any ideas? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Give this a whirl...
Sub Insert5Columns() ActiveCell.Offset(0, 1).Resize(, 5).EntireColumn.Insert End Sub -- HTH... Jim Thomlinson "Kurt" wrote: I would like to create a macro that will insert 5 columns to the right of the currently active cell. I would like to select any cell in my worksheet and run the macro and have it insert 5 columns. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell References | Excel Discussion (Misc queries) | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Row Expansion | Excel Worksheet Functions | |||
How do I create an excel macro to append to a cell with existing i | Excel Discussion (Misc queries) | |||
How do I create a macro, that references another excel file ??? | Excel Worksheet Functions |