I have two macros. One called Desktop and one called Harddrive.
For the Desktop macro it will put the word Desktop on Cell A3
It will then copy parts from the sheet and paste it in another sheet.
For the Harddrive macro it will put the word Harddrive on Cell A3
It will then copy parts from the sheet and paste it in another sheet.
When I am wondering is, since the code for copying and pasting the information is the exact same, is there a way I can have the code in 1 spot then recall it into the macro.
I know there is a way to do this in programming but I forget the name of it.
What I would like is:
CopyCode
Instructions for copying what I want
Desktop Macro
Put word Desktop in A3
Run CopyCode
Harddrive Macro
Put work Harddrive in A3
Run CopyCode
I would like this so if I need to make a change to the copying code, I just need to update the one spot
Bookmarks