Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Insert colmn
how can I automatically insert column before "Column name Top" across
multiple sheet. Also date each column for current month E.g) 1 - Sep -08 all help totally appreciated. thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Insert colmn
Do you want to insert a column before the Column containing "Top" in Row 1,
on ALL sheets and enter 1-Oct-08 in Row 1 for the new column, Oct-08 being the current month? "Yossy" wrote: how can I automatically insert column before "Column name Top" across multiple sheet. Also date each column for current month E.g) 1 - Sep -08 all help totally appreciated. thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Insert colmn
Try
Sub insertCol() Dim dt As String dt = Application.WorksheetFunction.Text(Date, "dd-mmm-yyyy") dt = "01" & Right(dt, Len(dt) - 2) For Each ws In Worksheets ws.Activate Range("1:1").Select For Each c In Selection If c.Value = "Top" Then c.Select Selection.EntireColumn.Insert ActiveCell.Value = dt Exit For End If Next Next End Sub "Sheeloo" wrote: Do you want to insert a column before the Column containing "Top" in Row 1, on ALL sheets and enter 1-Oct-08 in Row 1 for the new column, Oct-08 being the current month? "Yossy" wrote: how can I automatically insert column before "Column name Top" across multiple sheet. Also date each column for current month E.g) 1 - Sep -08 all help totally appreciated. thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
A shortcut to set colmn to count (example: A2=A1+A)? | Excel Programming | |||
How can we get more columns on a spreadsheet, like 365 days/colmn | Excel Worksheet Functions | |||
return colmn number + index | Excel Programming | |||
HELP: need to find number and sum another colmn | Excel Programming | |||
Protect except chng colmn width | Excel Programming |