#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Save As

Hello to all,

I´m triying to save a file in variable directory and with a variable
name.

C:\.....\year\weekXX

Archive Name- ResumeWeekXX.xls

-year- is the value of a cell in worksheet DW1
-weekXX- is the value of a cell in worksheet DW1

Thanks for your help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 268
Default Save As

Hi

I would declare some variables, set each variable to thbe value of one of
the referenced cell adresses, and then concatanate it,

Dim varDir, varYear, varWeek as String

varDir = "C:\ and your directory.....\"
varYear = cell address
varWeek = Cell address

Worksheet.SaveAs filename:= varDir & varYear & "\" & varWeek
"carloshernandezy" wrote:

Hello to all,

I´m triying to save a file in variable directory and with a variable
name.

C:\.....\year\weekXX

Archive Name- ResumeWeekXX.xls

-year- is the value of a cell in worksheet DW1
-weekXX- is the value of a cell in worksheet DW1

Thanks for your help


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Save As

ActiveWorkbook.SaveAs "C:\.....\" & Range("DW1").Value & "\" & _
"AchiveName-Resume" & Range("DW2").Value & ".xls"

fill in the .....
--
Regards,
Tom Ogilvy

"carloshernandezy" wrote in message
oups.com...
Hello to all,

I´m triying to save a file in variable directory and with a variable
name.

C:\.....\year\weekXX

Archive Name- ResumeWeekXX.xls

-year- is the value of a cell in worksheet DW1
-weekXX- is the value of a cell in worksheet DW1

Thanks for your help


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Save As

Thanks to all

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
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
Save As - Multiple Sheets fails to save as text file Ravee Srinivasan Excel Programming 2 November 10th 03 04:05 PM


All times are GMT +1. The time now is 12:39 AM.

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"