|
Re: paper: New Scouting Database from Team 2834
Quote:
Originally Posted by Oris
I got another one for you Ed to fix your opening issues.
Replace:
Code:
filen = CurDir + "\" + Format(teamnum) + ".jpg"
With:
Code:
Dim sCurDir As String
sCurDir = Mid(ThisWorkbook.FullName, 1, Len(ThisWorkbook.FullName) - Len(ThisWorkbook.Name))
filen = sCurDir + "\" + Format(teamnum) + ".jpg"
That way the team pictures will load if you open the file by double clicking, open recent, or file open.
Hope this helps,
-Oris-
|
Thanks Oris. Version 5 has this included. I also put in the protection as you suggested to help user avoid accidentally modifying fomulas in other cells. There is no password so users can unprotect it if they want to.
Ed
__________________
Please don't call me Mr. Ed, I am not a talking horse.
|