Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ren Ren is offline
external usenet poster
 
Posts: 67
Default Saving work sheet

HI!

I NEED TO SAVE THREE WORK SHEET.

SHEET 4,5,6.

THE USER PUSHES A BUTTON AND RESULTS ARE DISPLAYED, BUT I WOULD ALSO LIKE
THESE SHEETS TO BE SAVED IN DIRECTORY1, DIRECTORY2, DIRECTORY3.

THANKS TO ALL FOR YOUR HELP.

REN
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Saving work sheet

Dim i as Long
for i = 4 to 6
worksheets("Sheet" & i ).copy
ActiveWorkbook.SaveAs "C:\Directory" & i-3 _
& "\" & worksheets(i).Name & ".xls"
ActiveWorkbook.Close SaveChanges:=False
Next i

--
Regards,
Tom Ogilvy


"Ren" wrote in message
...
HI!

I NEED TO SAVE THREE WORK SHEET.

SHEET 4,5,6.

THE USER PUSHES A BUTTON AND RESULTS ARE DISPLAYED, BUT I WOULD ALSO LIKE
THESE SHEETS TO BE SAVED IN DIRECTORY1, DIRECTORY2, DIRECTORY3.

THANKS TO ALL FOR YOUR HELP.

REN



Reply
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 recover an Excel work sheet if closed before saving UEW Excel Discussion (Misc queries) 4 January 27th 09 09:00 PM
Amending 1 work sheet saving in all GeeWhizz Excel Worksheet Functions 2 April 23rd 08 06:37 AM
extracting totals from 1 work sheet to another work work sheet cj Excel Discussion (Misc queries) 2 October 27th 07 10:54 PM
GETTING SELECTED DATA FROM A WORK SHEET TO OTHER WORK SHEET kumar Excel Discussion (Misc queries) 0 October 4th 06 01:34 PM
Populating work sheet combox with another work sheet values sjayar Excel Discussion (Misc queries) 1 October 29th 05 03:22 PM


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