Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cannot obtain Filename
Hi,
I have the following code to open in turn all files in a directory and run a similar routine on them. The programming will recognise the file path, but my "Fname" is blank and not picking up any of the files in the directory Help gratefully recieved... Private Sub ImportNew_Click() Dim Fileloc As String Dim Fname As String Dim wkbk As Workbook Fileloc = "C:\Documents and Settings\FINPORT03\My Documents\Share\NR6 Draft.rpt" Fname = Dir(Fileloc & "*.rpt") While Fname < "" Workbooks.OpenText FileDir & Fname ConvertCostCenterMacro Thanks Graham |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to: obtain the filename that a module exists in, via VBA? | Excel Programming | |||
Converting a Variable Filename to a Constant Filename | Excel Programming | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
set excel <filename to <filename-date | Excel Programming | |||
Saving filename same as import filename | Excel Programming |