VBA:Open file with current date

Robert Mika

MrExcel MVP
Joined
Jun 29, 2009
Messages
7,256
I have s folder with file in format
"text date".

Examples:
"CV 24/05/11"
"CV 25/05/11"


Howe to point a macro to open a file with current date?
somthing like "CV" & TODAY()" ?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Probably something like

Workbooks.Open FileName:="D:\.....\CV" & Format$(Date, "dd/mm/yyyy") & ".xls"


BTW..... I don't think you can have file names such as "CV 24/05/11"!
 
Upvote 0
Hello All any help would be appreciated...

I have a file "=(VLOOKUP(A:A,'S:\LOGISTICS DEPARTMENT\PRODUCT SPEC SHEET\Product Specifications and Distribution 10-18-2017" instead of putting the date 10-18-2017 because the file gets updated and the date changes daily what can I use ??? also if the file date doesnt gets updated how can I use the current file in that location to retrieve my information.
 
Upvote 0
I need to open and copy the sheet from file in the folder which is daily updated with current date .And also need to save the copied sheet with current date

Example: "ResourceData - 20171120 v1.xlsb"
Save as " ResourceData - 20171120 - Permanent v1.xlsb"

Can anyone help me to sort out this??
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top