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 on C:\

Hi to all!

I'm also most completed my project and would like to thank all of you who help,THANK YOU.

Right now I'm trying to save three sheets.

I need to save
SheetA in C:\ABC\A\SheetA,
SheetB in C:\ABC\B\SheetB,
SheetC in C:\ABC\C\SheetC.

I'm using a button to do this and I'm also working with ExcelXP.

Thanks in advance to all.

Cheers

Ren


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Saving on C:\

Ren,

Do you have three worksheets in one workbook? Do you want to save them as
separate files? Are there formulas or links involved, or do you want to save
just values? Do you want to save copies? What do you want to have happen to
the original file?

HTH,
Bernie
MS Excel MVP

"Ren" wrote in message
...
Hi to all!

I'm also most completed my project and would like to thank all of you who

help,THANK YOU.

Right now I'm trying to save three sheets.

I need to save
SheetA in C:\ABC\A\SheetA,
SheetB in C:\ABC\B\SheetB,
SheetC in C:\ABC\C\SheetC.

I'm using a button to do this and I'm also working with ExcelXP.

Thanks in advance to all.

Cheers

Ren




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Saving on C:\


Try this:

Sub test()
Dim ws As Worksheet, sName As String
For Each ws In ThisWorkbook.Worksheets
ws.Copy
sName = "c:\abc\" & _
Trim(Replace(ws.Name, "Sheet", "")) & "\" & _
ws.Name & ".xls"
ActiveWorkbook.Close True, sName
Next
End Sub

You may have to add some tests that the directories exists..


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


?B?UmVu?= wrote:

Hi to all!

I'm also most completed my project and would like to thank all of you
who help,THANK YOU.

Right now I'm trying to save three sheets.

I need to save
SheetA in C:\ABC\A\SheetA,
SheetB in C:\ABC\B\SheetB,
SheetC in C:\ABC\C\SheetC.

I'm using a button to do this and I'm also working with ExcelXP.

Thanks in advance to all.

Cheers

Ren




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Saving on C:\

Ren,
If folder ABC and subfolders A,B,C is already there
Try
Sub aaa()
Dim i As Long
For i = 1 To 3
Sheets("Sheet" & Chr(64 + i)).Select
Sheets("Sheet" & Chr(64 + i)).Copy
ActiveWorkbook.SaveAs _
Filename:="C:\ABC\" & Chr(i + 64) & "\" & _
"Sheet" & Chr(64 + i) & ".xls", _
FileFormat:=xlNormal, Password:="", _
WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWindow.Close
Next i
End Sub
Cecil

"Ren" wrote in message
...
Hi to all!

I'm also most completed my project and would like to thank all of you who

help,THANK YOU.

Right now I'm trying to save three sheets.

I need to save
SheetA in C:\ABC\A\SheetA,
SheetB in C:\ABC\B\SheetB,
SheetC in C:\ABC\C\SheetC.

I'm using a button to do this and I'm also working with ExcelXP.

Thanks in advance to all.

Cheers

Ren




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Saving on C:\

Hi Ren

Use keepitcool's advice to copy and save single sheets to separate files.
But note that Excel XP may involve

<...the horror WINDOWS XP </...the horror

On lots of setups users are not allowed to do anything anywhere but in
C:\Documents and setings\<user name\My Documents\ , so your code may err
because the os hates users.

Best wishes Harald

"Ren" skrev i melding
...

Right now I'm trying to save three sheets.

I need to save
SheetA in C:\ABC\A\SheetA,
SheetB in C:\ABC\B\SheetB,
SheetC in C:\ABC\C\SheetC.

I'm using a button to do this and I'm also working with ExcelXP.



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
Saving as XML Gavin Bird Excel Discussion (Misc queries) 0 August 15th 11 04:20 AM
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
Saving on CD TJ Excel Discussion (Misc queries) 0 January 2nd 06 09:00 PM
Saving Jason Zischke Excel Discussion (Misc queries) 1 March 23rd 05 03:19 AM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM


All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"