Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default saving a worksheet using a macro

I want to save worksheets using data from a cell

12108(12-06-06) i would like to auto save using macro to select the data
in cell b1 mark(12-06-06) is this possible?

I tried but it used the same data as when i set up the macro each time not
the data that was in the cell at the time.

Sparkyman





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default saving a worksheet using a macro

Hi

I want to save worksheets using data from a cell


You can change this example
http://www.rondebruin.nl/copy6.htm

replace the save line with this one

Wb.SaveAs FolderName _
& "\" & Wb.Sheets(1).Range("B1").Value & ".xls"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Sparky AKA_Sparkticus" wrote in message k...
I want to save worksheets using data from a cell

12108(12-06-06) i would like to auto save using macro to select the data
in cell b1 mark(12-06-06) is this possible?

I tried but it used the same data as when i set up the macro each time not
the data that was in the cell at the time.

Sparkyman





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default saving a worksheet using a macro

Hi Thanks for the link and the code

got it down to:

Dim Wb As Workbook
Set Wb = ActiveWorkbook
Wb.SaveAs Wb.Sheets(1).Range("B1").Value & ".xls"
MsgBox "File coppied into ??????"

which works great for me but was wondering if there was a way to designate
the folder it saves to?

sparkyman


Ron de Bruin wrote:
Hi

I want to save worksheets using data from a cell


You can change this example
http://www.rondebruin.nl/copy6.htm

replace the save line with this one

Wb.Saves Folder _
& "\" & Wb.Sheets(1).Range("B1").Value & ".xls"



"Sparky AKA_Sparkticus" wrote in
message k...
I want to save worksheets using data from a cell

12108(12-06-06) i would like to auto save using macro to select
the data in cell b1 mark(12-06-06) is this possible?

I tried but it used the same data as when i set up the macro each
time not the data that was in the cell at the time.

Sparkyman


--

There's no underestimating the intelligence of the American public.
H. L. Mencken (1880 - 1956)



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default saving a worksheet using a macro

For C:\Data use

Wb.SaveAs "C:\Data\" & Wb.Sheets(1).Range("B1").Value & ".xls"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Sparky AKA_Sparkticus" wrote in message k...
Hi Thanks for the link and the code

got it down to:

Dim Wb As Workbook
Set Wb = ActiveWorkbook
Wb.SaveAs Wb.Sheets(1).Range("B1").Value & ".xls"
MsgBox "File coppied into ??????"

which works great for me but was wondering if there was a way to designate
the folder it saves to?

sparkyman


Ron de Bruin wrote:
Hi

I want to save worksheets using data from a cell


You can change this example
http://www.rondebruin.nl/copy6.htm

replace the save line with this one

Wb.Saves Folder _
& "\" & Wb.Sheets(1).Range("B1").Value & ".xls"



"Sparky AKA_Sparkticus" wrote in
message k...
I want to save worksheets using data from a cell

12108(12-06-06) i would like to auto save using macro to select
the data in cell b1 mark(12-06-06) is this possible?

I tried but it used the same data as when i set up the macro each
time not the data that was in the cell at the time.

Sparkyman


--

There's no underestimating the intelligence of the American public.
H. L. Mencken (1880 - 1956)



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default saving a worksheet using a macro

Thanks for the assist Ron.


SparkyMan

Ron de Bruin wrote:
For C:\Data use

Wb.SaveAs "C:\Data\" & Wb.Sheets(1).Range("B1").Value & ".xls"



"Sparky AKA_Sparkticus" wrote in
message k...
Hi Thanks for the link and the code

got it down to:

Dim Wb As Workbook
Set Wb = ActiveWorkbook
Wb.SaveAs Wb.Sheets(1).Range("B1").Value & ".xls"
MsgBox "File coppied into ??????"

which works great for me but was wondering if there was a way to
designate the folder it saves to?

sparkyman


Ron de Bruin wrote:
Hi

I want to save worksheets using data from a cell

You can change this example
http://www.rondebruin.nl/copy6.htm

replace the save line with this one

Wb.Saves Folder _
& "\" & Wb.Sheets(1).Range("B1").Value &
".xls"



"Sparky AKA_Sparkticus" wrote in
message k...
I want to save worksheets using data from a cell

12108(12-06-06) i would like to auto save using macro to select
the data in cell b1 mark(12-06-06) is this possible?

I tried but it used the same data as when i set up the macro each
time not the data that was in the cell at the time.

Sparkyman


--

There's no underestimating the intelligence of the American public.
H. L. Mencken (1880 - 1956)


--

There's no underestimating the intelligence of the American public.
H. L. Mencken (1880 - 1956)





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 in 1 worksheet only Mr. Burton Excel Worksheet Functions 11 October 21st 08 12:19 PM
Saving Worksheet "Name" in a Macro ckrogers Excel Worksheet Functions 4 December 28th 07 09:51 PM
Saving a worksheet Gina Excel Programming 6 July 25th 06 03:04 PM
Saving a spreadsheet without saving the Macro tedd13 Excel Programming 7 March 31st 06 02:17 PM
VBA: saving as with the name of the worksheet steve a Excel Programming 2 June 3rd 04 06:28 AM


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