Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the below block of code that adds a simple header row:
------- Public Sub add_headers() Rows("1:1").Select Selection.Insert Shift:=xlDown Range("A1:BD1").Select Selection.NumberFormat = "@" Count = 0 For Each cell In Selection Count = Count + 1 cell.Value = "D" & Count Next cell End Sub ------- How can I rewrite this using an Array to indicate my range instead of selecting it? The Array would have 56 elements. Thanks Fred |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup [rewrite] | Excel Discussion (Misc queries) | |||
How to Rewrite these Code? | Excel Programming | |||
How to Rewrite these Code? | Excel Programming | |||
How to Rewrite these Code? | Excel Programming | |||
How to Rewrite these Code? | Excel Programming |