C
CrankyLemming
Seems like every week I'm back with a new question. I'm beginning to
think I should have just posted a detailed account of what I want and
let you guys get on with it.
Anyway, I think I have good cause to be stuck now.
I have a main workbook ("Main") which the whole office can access, and
it operates on being userform driven - there's no actual spreadsheet
onscreen at any time. What I want to do is include a button on the
userform which opens a specific worksheet, dependant on the user's
name.
Everyone had a single-sheet workbook with their name as the workbook
name: Alan.xls, Barry.xls, Chris.xls, Dave.xls, etc, where they record
their working hours.
"Main" already contains a macro that looks for the UserName when
opened, so I've tried the following:
ActiveWorkbook.FollowHyperlink Address:=("\\Department
Name\Benefits\alan\4\" & UserName), NewWindow:=True
.... but this throws back an error.
Am I missing something really obvious?
TIA, as usual
Alan
think I should have just posted a detailed account of what I want and
let you guys get on with it.
Anyway, I think I have good cause to be stuck now.
I have a main workbook ("Main") which the whole office can access, and
it operates on being userform driven - there's no actual spreadsheet
onscreen at any time. What I want to do is include a button on the
userform which opens a specific worksheet, dependant on the user's
name.
Everyone had a single-sheet workbook with their name as the workbook
name: Alan.xls, Barry.xls, Chris.xls, Dave.xls, etc, where they record
their working hours.
"Main" already contains a macro that looks for the UserName when
opened, so I've tried the following:
ActiveWorkbook.FollowHyperlink Address:=("\\Department
Name\Benefits\alan\4\" & UserName), NewWindow:=True
.... but this throws back an error.
Am I missing something really obvious?
TIA, as usual
Alan