Question: what is fname in vba?
Answer: The following VBA code uses the Dir function to list all the files and directories within "C:\". ' List the files and directories within "C:\". ... ' Get the next file or directory within "C:\". fName = Dir() ' The variable fName now contains the name of the next file or directory within "C:\".