Willow Solutions, Inc. Leaf graphic
Willow SOlutions, Inc. Software that thinks like you do
News
Products
Case Studies
Tips
Willow Talk
Clients
Partners
Job Openings
Home

Willow Talk

 
 
Back to Willow Talk

Opening, Updating, and Printing with a macro

Posted By:

Mark W. Bachman

Email:

mbachman@tweisel.com

Date:

5/2/2003

Time:

7:33:25 PM

Comments:

I am using the following code to 1) open; 2) update; and 3) print a series of spreadsheets.

My spreadsheets are linked to BRIDGE. The code is rather simple, but it does not work. Althought the update command has been given, Excel prints the sheet without the updated information. However, as soon as the subroutine has completed (and the file already sent to the printer) the spreadsheet is then updated with the correct information. Does anyone know why this happens?

Sub Print_All_Models()
Workbooks.Open Filename:= "C:test.xls", UpdateLinks:=3
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End Sub

Obviously this is a simple piece of code, but the macro will eventually be wrtitten to work with 30+ spreadsheets, and will automate a burdensome process that is presently done my hand. However, it is of no use to me if I can't get the correct data into the spreadsheet before it is printed.

Thanks,

Mark



Related Messages:

Opening, Updating, and Printing with a macro
        Re: Opening, Updating, and Printing with a macro

  What's New | Products | Case Studies | Willow Tips | Willow Talk | Clients | Partners | Job Openings | Home
  Terms of UsePrivacy Statement
Willow Solutions, Inc.85 Willow Street, New Haven CT 06511 USA203.777.5634info@willowsolutions.com