Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We are using -
FileOpenName = Application.GetOpenFilename("Text Files (*.txt),*.txt", 1, "Open IFCAP Text File", , False) to prompt the user for the file to be opened. Later in our macro we want to switch from another workbook to this workbook, but can't figure out how to get the workbook name as a variable from the FileOpenName variable. The FileOpenName could be "C:\FOLDER1\FOLDER2\FNAME.xls." It could have multiple folders and the filename can vary. We can not see how to get the FNAME.xls extracted. We looked at Instr but couldn't see how to use it to get what we want. Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File name and Sheet name a variable. | Excel Discussion (Misc queries) | |||
Variable File Name | Excel Discussion (Misc queries) | |||
calling a value from another file using a variable in the file nam | Excel Worksheet Functions | |||
calling a value from another file using a variable in the file nam | Excel Discussion (Misc queries) | |||
Variable File Name | Excel Worksheet Functions |