F
funkymonkUK
hi i got the following code
Sub test
Dim xlbookPath as string
xlbookPath = Application.getopenfilename ("Excel Files(*.xls),*.xls")
Msgbox xlbookPath
end sub
Now i have two questions first one.
1. With the Getopenfilename settings Can I specify the title of the
open box the default is "Open" but I want to change this how do I do
it.
2. xlbookPath is a whole long string I want to remove the .xls part of
the string which will be right at the end of the string. ANY IDEAS HOW
I COULD DO THIS?
Sub test
Dim xlbookPath as string
xlbookPath = Application.getopenfilename ("Excel Files(*.xls),*.xls")
Msgbox xlbookPath
end sub
Now i have two questions first one.
1. With the Getopenfilename settings Can I specify the title of the
open box the default is "Open" but I want to change this how do I do
it.
2. xlbookPath is a whole long string I want to remove the .xls part of
the string which will be right at the end of the string. ANY IDEAS HOW
I COULD DO THIS?