View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] crferguson@gmail.com is offline
external usenet poster
 
Posts: 91
Default Filename based on Cell contents

I'd format the date and add it into the file path, something like this:

Dim strDate as String, strPath as String

strDate = Format(Range("C1").Value, "MMddyy")
strPath = "'C:\Documents and Settings\PC\My Documents\Green
Books\[GB_*" & strDate & "*-Q6150.xls]DailyWS'!$D$5"