Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving print area as pdf in excel vb macro

Status
Not open for further replies.

toddioi

MIS
Oct 17, 2006
3
US
i need a code I can put into one of my macros which will

activate print (the print area has already been set)
save as pdf
name the pdf document the value (or text) of a cell on the worksheet
return to the active worksheet in excel


Right now the macro stops and I have to manually do the above.


Any help out there?
 
Can you record a macro of your manual actions, and adapt the result for use in your real macro?

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
no. when you step from the excel enviorment to the pdf enviorment this is what you see and does not give much opportunity for modification.

Sub pdf()
'
' pdf Macro
' Macro recorded 10/18/2006 by Trial User
'

'
ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top