M
mtpaper
Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
Hello -
I have a worksheet set up to print a report as follows:
- I enter a unique ID number into A1
- info in the print area uses vlookup to reflect accurate data
I think print to pdf
The problem is that I have to do this 100 times.... ie, I have 100 people who get this page, with their individual information.
I don't mind entering their numbers, but, I hate that I have to use the mouse for the PDF->Print to PDF portion.
I need a key combination to get me to the window for entering the file name.
Or, ideally, an icon on my toolbar that will get me to: Print to PDF
I tried setting up the keystrokes and writing a script, but it's really more than my brain can handle at the moment.
tell application "Microsoft Excel"
activate
set mySheet to worksheet "Sheet1" of active workbook
set N_ame to the value of cell "A2" of mySheet
tell application "System Events"
keystroke "p" using command down
delay 1
keystroke "p" using {option down, command down}
delay 1
keystroke "d" using command down
delay 1
keystroke "" & N_ame & ""
keystroke return
end tell
end tell
Can anyone out there help me?
Thank you
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
Hello -
I have a worksheet set up to print a report as follows:
- I enter a unique ID number into A1
- info in the print area uses vlookup to reflect accurate data
I think print to pdf
The problem is that I have to do this 100 times.... ie, I have 100 people who get this page, with their individual information.
I don't mind entering their numbers, but, I hate that I have to use the mouse for the PDF->Print to PDF portion.
I need a key combination to get me to the window for entering the file name.
Or, ideally, an icon on my toolbar that will get me to: Print to PDF
I tried setting up the keystrokes and writing a script, but it's really more than my brain can handle at the moment.
tell application "Microsoft Excel"
activate
set mySheet to worksheet "Sheet1" of active workbook
set N_ame to the value of cell "A2" of mySheet
tell application "System Events"
keystroke "p" using command down
delay 1
keystroke "p" using {option down, command down}
delay 1
keystroke "d" using command down
delay 1
keystroke "" & N_ame & ""
keystroke return
end tell
end tell
Can anyone out there help me?
Thank you