Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jul 29, 6:40*am, ryguy7272 wrote:
On Jul 29, 2:32*am, Javed wrote: Filename contains extension BookName = Mid(Fname, InStrRev(Fname, "/") + 1) In the above line Mid returns from last "/" to end of Fname. Suggestion: BookName = Mid(Fname, InStrRev(Fname, "/") + 1,InStr(Fname,".xls")- InStrRev(Fname, "/") -1) Pls confirm. Nope, that gives me the file name, but without the ".xls". *So, i simply concatenated a ".xls" onto the end. *Now, I have the file name and the extension, but it STILL WON'T SAVE. *I can't figure it out!! Error is still on this line: Set wb = Workbooks(Index:=BookName) Error mssg is 'subscript out of range'. Any thoughts? Got it working!! I had some help from a colleague in my office. Thanks Mandeep!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Get reference to a file opened in another instance of XL | Excel Programming | |||
Separate Window/Instance Per Excel File | Excel Discussion (Misc queries) | |||
Force a File to Open in a New Excel Instance | Excel Programming | |||
How to open a new instance of EXCEL and .xls file | Excel Worksheet Functions | |||
Set up Excel to start new instance for each new file opened. | Excel Discussion (Misc queries) |