C
Crownman
Hello All
I am trying to copy a range from a master workbook to a specific
location of several open workbooks. So far I have the following code
in my Personal.xls :
Sub UpdatePickList()
'
' UpdatePickList Macro
' Macro recorded 11/11/2009 by TOM
'
' Keyboard Shortcut: Ctrl+z
'
Sheets("LISTS").Select
Range("A5").Select
ActiveSheet.Paste
Range("A1").Select
Sheets("TITLE").Select
End Sub
This code works, butI have to first open the master workbook and
select the appropriate range to copy (this range does not change) and
then activate each target workbook in turn and run the macro.
What I would ultimately like to do is the following
1. Have all of the code reside in the master workbook instead of
Personal.xls. This being done for someone else and I would prefer to
not require them to add the code to their Personal.xls.
2. Select one of the target workbooks, run the macro which would
select the appropriate range from the master workbook and copy it to
cell A5 on the "LISTS" worksheet of the target workbook.
3. Repeat for each target workbook.
If the code could automatically select each open target workbook and
do the copy and paste that would be even better.
Can anyone help with the coding for this. Thanks for any help.
Crownman
I am trying to copy a range from a master workbook to a specific
location of several open workbooks. So far I have the following code
in my Personal.xls :
Sub UpdatePickList()
'
' UpdatePickList Macro
' Macro recorded 11/11/2009 by TOM
'
' Keyboard Shortcut: Ctrl+z
'
Sheets("LISTS").Select
Range("A5").Select
ActiveSheet.Paste
Range("A1").Select
Sheets("TITLE").Select
End Sub
This code works, butI have to first open the master workbook and
select the appropriate range to copy (this range does not change) and
then activate each target workbook in turn and run the macro.
What I would ultimately like to do is the following
1. Have all of the code reside in the master workbook instead of
Personal.xls. This being done for someone else and I would prefer to
not require them to add the code to their Personal.xls.
2. Select one of the target workbooks, run the macro which would
select the appropriate range from the master workbook and copy it to
cell A5 on the "LISTS" worksheet of the target workbook.
3. Repeat for each target workbook.
If the code could automatically select each open target workbook and
do the copy and paste that would be even better.
Can anyone help with the coding for this. Thanks for any help.
Crownman