Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks to all
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() | Excel Discussion (Misc queries) | |||
how to get disk icon on save button of save as dialog like 2000 | Excel Discussion (Misc queries) | |||
when i save xls file, debug script is running and canno't save fil | Excel Discussion (Misc queries) | |||
Save As - Multiple Sheets fails to save as text file | Excel Programming |