philipb645
New Member
- Joined
- Sep 26, 2014
- Messages
- 3
I have the following line in my VBA code in Excel 2010
rnl_fname = Application.GetOpenFilenam<wbr>e(Title:="<wbr>Select R560 Renewal SUM", _
filefilter:="R560Combined?<wbr>??.SUM (*.SUM),*.SUM")
When the file dialog box comes up, I only want it to show files that start with R560Combined and end in .SUM. For instance I might have a R560CombinedARD.SUM and a R560ARD.SUM. I only want to see the COMBINED one in my file open dialog. I've tried putting the R560Combined in front of both *.sum and that doesn't work. If I put it in front of the first *.sum, then it defaults to *.* basically and doesn't use my filter. I've tried it without the question marks. Any ideas on how I can make this work?
rnl_fname = Application.GetOpenFilenam<wbr>e(Title:="<wbr>Select R560 Renewal SUM", _
filefilter:="R560Combined?<wbr>??.SUM (*.SUM),*.SUM")
When the file dialog box comes up, I only want it to show files that start with R560Combined and end in .SUM. For instance I might have a R560CombinedARD.SUM and a R560ARD.SUM. I only want to see the COMBINED one in my file open dialog. I've tried putting the R560Combined in front of both *.sum and that doesn't work. If I put it in front of the first *.sum, then it defaults to *.* basically and doesn't use my filter. I've tried it without the question marks. Any ideas on how I can make this work?