Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Easy way
Set thisSheet = Activesheet Columns("B:B").Select Selection.Insert Shift:=xlToRight Range("B3").Select ActiveWindow.ScrollWorkbookTabs Sheets:=-1 Sheets("CP093004").Select Range("B3").Select Selection.Copy Sheets("CP031005").Select Range("B3").Select thisSheet.Activate -- HTH RP (remove nothere from the email address if mailing direct) "Brad" wrote in message ... I have the following code generated from a macro: Columns("B:B").Select Selection.Insert Shift:=xlToRight Range("B3").Select ActiveWindow.ScrollWorkbookTabs Sheets:=-1 Sheets("CP093004").Select Range("B3").Select Selection.Copy Sheets("CP031005").Select Range("B3").Select ... and, I want to run the macro from a newly imported sheet, so, what can I put in place of Sheets("CP031005").Select so that it selects the current sheet from which the macro was called? My thanks in advance for any help. Brad |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to run relative to current selected cell | Excel Discussion (Misc queries) | |||
Excel should enlarge the current selected row for easy reading | Excel Worksheet Functions | |||
how do i make it so that when a sheat is selected either via link or tab, that xlLastCell is selected. the last on the sheet. | Excel Worksheet Functions | |||
how can one obtain the current selected cell value | Excel Programming | |||
plotting chart with user selected range from current workbook | Excel Programming |