-
How do you create a VBA formula code based on Filename?
I have a match index formula that will look up data from another file, but the filename changes everyweek.
How will I create a VBA formula code if filename changes?
Below is my sample formula line, usually only the date on the filename changes (highlighted in red").
[vba]Range("A7:A" & lRow).Formula = "=INDEX('G:\SCP\Consolidated\Product Supply Report\2010\Export Product Supply\Malaysia\[CAMPAIGNLY MAJOR OFFER SUPPORTABILITY_CFT_062310.xls]PSR'!H$7:H$65536,MATCH($F1,'G:\SCP\Consolidated\Product Supply Report\2010\Export Product Supply\Malaysia\[CAMPAIGNLY MAJOR OFFER SUPPORTABILITY_CFT_062310.xls]PSR'!$F$7:$F$65536,))"[/vba]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules