LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Save As Macro Script

I am building an Excel spreadsheet that will be used to produce Invoices and
Delivery Notes via a web based IntraNet site.

Since the usual toolbars and menus are not available in the Internet
Explorer embedded Excel; I have been creating macros to allow the users to
Save and Print. The print commands work fine but I am not able to create a
macro that will present the user with a Save As dialogue box.

The alternative solution I thought up was to install a PDF writing printer
driver on all of the workstations and write a macro that would automatically
change the printer selection and initiate a print out on click, resulting in
a Save As dialogue box that woud allow the user to save the spreadsheet in
PDF format to the location of their choice.

Sub Save_IDN()
'
' Save_IDN Macro
' Macro recorded 25/03/2006 by Neal
'

Dim STDprinter As String
STDprinter = Application.ActivePrinter
Application.ActivePrinter = "IDN on CPW2:"
' change printer
Sheets(Array("Invoice", "DeliveryNote")).Select
Sheets("Invoice").Activate
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' prints the active sheet
Application.ActivePrinter = "Canon PIXMA iP1500 on Ne00:"
' change back to standard printer
End Sub

Although this works fine on locally stored spreadsheets, it doesn't when the
file is launched from the web.

Does anybody know how I can get my PDF system to work or alternatively
achieve a Save As dialogue box.

Many thanks in advance for any replies.
 
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
Save as Visual Script Help Jeremy Excel Discussion (Misc queries) 1 December 8th 09 09:02 PM
Save Excel File every wednesday VB Script Help sam76210 Excel Programming 2 March 8th 06 08:12 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
VBA Script for copy and paste to save tamato43 Excel Discussion (Misc queries) 3 May 17th 05 08:22 PM
VB Script file save as with date nixter Excel Programming 3 January 13th 05 07:06 PM


All times are GMT +1. The time now is 04:08 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"