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: 1
Default Need To save a spreadsheet multiple times through a macro


I have a macros that let me update information for multiple companies. I
want to add to it to save the spredsheet each time a new company is
updated with information. The following macro updates the information
and then prints. I want it to then save the spreadsheet after each
print. How can I do this. _See_the_following_macro:_

Sub Agency()
'
' Agency Macro
' Macro recorded 3/14/2006 by Interpublic User
'

'
For i = 5 To 134
Range("E8").Select
Sheets("Agency List").Select
Application.Run "OnSheetChange"
Range("A" & i).Select
Selection.Copy
Sheets("Balance Sheet").Select
Application.Run "OnSheetChange"
Range("E8").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFilter Field:=1, Criteria1:="2"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Next i
End Sub


--
mibsaweiss
------------------------------------------------------------------------
mibsaweiss's Profile: http://www.excelforum.com/member.php...o&userid=32533
View this thread: http://www.excelforum.com/showthread...hreadid=533944

 
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 do I show the same spreadsheet multiple times in Excel? Kube Excel Discussion (Misc queries) 2 August 18th 09 01:24 AM
Copy line multiple times throughout spreadsheet? MEE Excel Discussion (Misc queries) 3 October 26th 07 07:51 PM
how do i save multiple files to one excel spreadsheet Nora Excel Worksheet Functions 1 May 23rd 07 01:25 PM
macro to copy a value multiple times depending on value in adj dribler2 Excel Worksheet Functions 0 January 10th 07 12:48 AM
Run macro multiple times kriemer Excel Programming 0 November 11th 05 03:40 AM


All times are GMT +1. The time now is 03:47 PM.

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"