LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Scott Zierler
 
Posts: n/a
Default PDF output with Cell as filename

Hello Everyone,

This has me pulling my hair out. I am trying to make a macro that will
select a range of cells, take a cell value and use it as the filename, then
use SendKeys to take that cell value and use it to avoid seeing the save as
dialog box. I am wishing to much here? CUrrently Errorsout and debugs at
the ActiveCell.Select line.

Thanks for your help!

Routing below.


Sub pdfout()
'
' pdfout Macro
' Macro recorded 6/29/2005 by Scott Zierler
'

'
Range("B1:F110").Select
Application.ActivePrinter = "Adobe PDF on Ne05:"
Selection.PrintOut Copies:=1, ActivePrinter:="Adobe PDF on Ne05:",
Collate _
:=True
ActiveCell.Select = ("$C$6")<<<ERRORS OUT HERE
Let PSFileName = Application.ActiveCell
SendKeys PSFileName & "{ENTER}", False
ActiveSheet.PrintOut , PrintToFile:=True
PSFileName = Chr(3) & PSFileName & Chr(34)

End Sub

 
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
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
Using a Text / Data output as a cell reference Jimboski Excel Discussion (Misc queries) 1 February 11th 05 07:31 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 12:03 AM.

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

About Us

"It's about Microsoft Excel"