Saving work sheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top