Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
At the end of my macros, I want to save my workbook to another folder with
another name. I want to save the file AS: C:/Mydata/testfile_yyyymmdd,xls where yyyymmdd is the current date. How do I code this in the macro.? Thanks for your help. Dean |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
strFileName = "testfile_" & Format$(Date, "yyyymmdd") & ".xls"
ThisWorkbook.SaveAs "C:\Mydata\" & strFileName Steve "DeanT" wrote in message ... At the end of my macros, I want to save my workbook to another folder with another name. I want to save the file AS: C:/Mydata/testfile_yyyymmdd,xls where yyyymmdd is the current date. How do I code this in the macro.? Thanks for your help. Dean |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Activeworkbook.SaveAs Filename:=Activeworkbook.Path & "\testfile_" &
Format(Date,"yyyymmdd") & .xls" -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct) "DeanT" wrote in message ... At the end of my macros, I want to save my workbook to another folder with another name. I want to save the file AS: C:/Mydata/testfile_yyyymmdd,xls where yyyymmdd is the current date. How do I code this in the macro.? Thanks for your help. Dean |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date and User restriction coding | Excel Worksheet Functions | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
set excel <filename to <filename-date | Excel Programming | |||
VBA Coding: Date Consideration | Excel Programming | |||
Coding to show first _weekday_ prior to a date, when date calculation happens to fall on weekend? | Excel Programming |