Macro selects current worksheet
Posted by Donald Marshall III on October 15, 2001 6:04 AM
I am trying to write a macro that will pull data from the worksheet I am currently in and post it to a specific worksheet. I am running into problems when I record the macro because it registers the specific name of the sheet I am using, not the general case. Here is part of what I have (I want to change the first line from "45701-1" to "whatever goes in here to indicate the sheet that is currently being used"):
Sheets("45701-1").Select
Range("G8,G13,G18").Select
Range("G18").Activate
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Data (2)").Select
Range("I429").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Thanks.
-Donald