Name a File via Code Q
Dim LastDotPos as long
dim WBName as string
wbname = wb.name
lastdotpos = instrrev(wbname,".")
if lastdotpos 0 then
wbname = left(wbname,lastdotpos-1)
end if
tempfilename = "part of " & wbname & ....
Seanie wrote:
Thanks Guys, sometimes its 3 and others 4 I could edit between both
but to keep my code standard, can I build that in? It will only ever
be xls or xlsm
--
Dave Peterson
|