Wildcard Help

Status
Not open for further replies.

markoakes

Active Member
Joined
Jan 5, 2004
Messages
325
I have asked this question before but have not an answer that would work. Maybe I am not asking the question properly, so I will try again.

I have a Workbook named "Reports 3-3-04.xls. The 3-3-04 is a version date that changes when a new version is released. The Workbook contains a macro that will create reports from the data contained in the "Reports 3-3-04.xls" Workbook. Part of the macro is a varible that refers to a cell on a worksheet in "Reports 3-3-04.xls" using the following code.

myInfo=Workbooks ("Report 3-3-04.xls"). Sheets ("Info"). Range ("B4")

This works fine, the problem I am having is the date in the name of the Workbook "Report 3-3-04.xls" changes. Is there a way that I can reference the "Report" Workbook using a Wildcard (*)? Something like Workbooks ("Report *.xls")?

Any help would be great. Thanks
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Status
Not open for further replies.

Forum statistics

Threads
1,214,431
Messages
6,119,458
Members
448,899
Latest member
maplemeadows

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