geordie_ben
Board Regular
- Joined
- Jul 27, 2009
- Messages
- 122
Apologies in advance for the basic question. I was slowly becoming a whizz at VBA a decade ago, but I'm picking it back up and need a few pointers
I'm making a macro to take info from sheet to another, and then to fill forumula that I've entered into the sheet already (that'll be a separate question to see if I can get the macro to insert the formula for me
The start of my code is:
The next time I run the macro there may be more or less entries on sheet one. As above my macro states the range as A2:A196 - will this cause me any issues?
I'm making a macro to take info from sheet to another, and then to fill forumula that I've entered into the sheet already (that'll be a separate question to see if I can get the macro to insert the formula for me
The start of my code is:
Code:
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Nominal Products").Select
Range("B2").Select
ActiveSheet.Paste
Range("A2").Select
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("A2:A196")
Range("A2:A196").Select
Last edited by a moderator: