J
jontait
Hi,
I've a few control buttons within my excel spreadsheet that users ca
click on to open up files. (the buttons are "help" buttons explainin
what different terms mean within the spreadsheet)
The code I'm using (very kindly supplied by someone in this forum) is:
Private Sub CommandButton1_Click()
ActiveWorkbook.FollowHyperlink _
Address:="C:\test.doc", _
NewWindow:=True
End Sub
However, there will be instances when users press many of the button
within one session, if all the documents the user is hyperlinking t
are Word, then I end up with lots of Word windows open - one for eac
button pressed
Is there any way to modify the code to only open a new window if ther
isn't one already there? I.e. if its a PDF document and there's alread
been a PDF document opened earlier then there's no need to open Acroba
Reader again?
I hope this makes sense, and as always THANK YOU in anticipation o
your replies.
Jo
I've a few control buttons within my excel spreadsheet that users ca
click on to open up files. (the buttons are "help" buttons explainin
what different terms mean within the spreadsheet)
The code I'm using (very kindly supplied by someone in this forum) is:
Private Sub CommandButton1_Click()
ActiveWorkbook.FollowHyperlink _
Address:="C:\test.doc", _
NewWindow:=True
End Sub
However, there will be instances when users press many of the button
within one session, if all the documents the user is hyperlinking t
are Word, then I end up with lots of Word windows open - one for eac
button pressed
Is there any way to modify the code to only open a new window if ther
isn't one already there? I.e. if its a PDF document and there's alread
been a PDF document opened earlier then there's no need to open Acroba
Reader again?
I hope this makes sense, and as always THANK YOU in anticipation o
your replies.
Jo