Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Saving question

I need a little help with this code please
I am trying to save using a macro to the directory c:\21 Legs
using the cell Sheet4.Range("a18").Value


How do I do this ?

Thanks

Greg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Saving question

This should get you started.

ActiveWorkbook.SaveAs ("C:\21 Legs\" & Sheets("Sheet4").Range("A18").Value)

Without knowing exactly what you want to accomplish with A18, in the code
above, I assume there is a file name within that cell. This also assumes
that the file name in cell A18 includes the file extension. If it is the
path and filename that is in A18, then you'll have to adjust.

ActiveWorkbook.SaveAs (Sheets("Sheet4").Range("A18").Value)

HTH,
Paul


wrote in message
...
I need a little help with this code please
I am trying to save using a macro to the directory c:\21 Legs
using the cell Sheet4.Range("a18").Value


How do I do this ?

Thanks

Greg



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Saving question

Thanks for that

Works great

Greg


"PCLIVE" wrote in message
...
This should get you started.

ActiveWorkbook.SaveAs ("C:\21 Legs\" &
Sheets("Sheet4").Range("A18").Value)

Without knowing exactly what you want to accomplish with A18, in the code
above, I assume there is a file name within that cell. This also assumes
that the file name in cell A18 includes the file extension. If it is the
path and filename that is in A18, then you'll have to adjust.

ActiveWorkbook.SaveAs (Sheets("Sheet4").Range("A18").Value)

HTH,
Paul


wrote in message
...
I need a little help with this code please
I am trying to save using a macro to the directory c:\21 Legs
using the cell Sheet4.Range("a18").Value


How do I do this ?

Thanks

Greg



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 question Greg B Excel Discussion (Misc queries) 2 March 3rd 05 09:33 AM
Saving question Greg B Excel Worksheet Functions 2 March 3rd 05 09:33 AM
Saving question Greg B[_4_] Excel Programming 2 March 3rd 05 09:33 AM
Saving question jacksonz[_2_] Excel Programming 1 September 22nd 04 05:48 PM
Question about saving a *.dbf file 39N95W Excel Programming 2 May 6th 04 06:53 AM


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