OK - will give it a go and then try it in work tomorrow. thanks very
much for your help.
Johnny- Hide quoted text -
- Show quoted text -
Nope - my works PC is locked and defaults to "f" drive so although I
set my pen drive to be "x" it still picks it up as "f" which means the
code which had "x" in is wont work so I changed the code again back to
"F". I can work out how to use
DriveLetter = Left(ThisWorkbook.Path, 1)
Workbooks.Open (" & DriveLetter & _
":\Direct Payments DOT\0.5 yearly payment planner.xls")
I know I am now pushing it but could you write the code just as you
might use it "live" and I could pick the bones out of it.
My works PC is reading the pen drive as "f" my lap top reads it as
"g" coz "f" is used for the DVD not sure what my home PC reads it as
(haven't tried it yet)
here is the actual code I need to use.
Private Sub Workbook_Open()
Workbooks.Open ("f:\Direct Payments DOT\1 payments cheryl.xls")
Workbooks.Open ("f:\Direct Payments DOT\1 payments Sandra.xls") '
Change as required
Workbooks.Open ("f:\Direct Payments DOT\1 payments Liv.xls")
Workbooks.Open ("f:\Direct Payments DOT\1 payments Sally.xls")
Workbooks.Open ("f:\Direct Payments DOT\0.5 yearly payment
planner.xls")
End Sub
THANKS VERY MUCH.
Johnnyboy
many thanks
John