Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro to create PDF's question


Hi. I have macro that does the following:

1) Opens a spreadsheet with 6 tabs (worksheets)
2) Selects one tab, and prints using the Acrobat Disiller as a printer
3) Saves this file as "cashseries.pdf"
4) Goes back to the spreadsheet and selects the next tab
5) Repeats the .pdf creation, saving the next tab as "primeseries.pdf"
6) and so forth for all six tabs, saving as a different name

In the end, I will have 6 .pdf files created all with different names

The only problem I am having is, when these files get created, they are
all saved in "My Documents" folder. I'm trying to save them in a certain
folder.

Part of the macro code is as follows:

-*Sheets("Prime Series").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, printToFile:=True,
_
prtofilename:="L:\rates\primeseries"
Kill "L:\rates\primeseries"*-

Can someone tell me what I am doing wrong?

Thanks!


--
joeyarsenault19
------------------------------------------------------------------------
joeyarsenault19's Profile: http://www.excelforum.com/member.php...o&userid=36365
View this thread: http://www.excelforum.com/showthread...hreadid=561509

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Macro to create PDF's question


I suspect that you might need to use the ChDrive statement to change the
default drive before you try to save the files

ChDrive L


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=561509

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create automatic macro with if statement or similar betatryck_se Excel Discussion (Misc queries) 2 December 14th 05 11:32 AM
How do I create an excel macro to append to a cell with existing i zola_tiara Excel Discussion (Misc queries) 4 September 14th 05 08:22 PM
Macro Question Chris Excel Worksheet Functions 0 July 18th 05 04:02 PM
create macro for learning purposes jzzman Excel Worksheet Functions 1 July 1st 05 03:34 PM
How do I create a macro of editing keystrokes? scjanner Excel Discussion (Misc queries) 0 January 21st 05 11:07 PM


All times are GMT +1. The time now is 05:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"