#1   Report Post  
bold17
 
Posts: n/a
Default hyperlink in a macro

Can I add a hyperlink into a macro?
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

It might help if you explained what you are trying to achieve.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


bold17 wrote:
Can I add a hyperlink into a macro?



  #3   Report Post  
bold17
 
Posts: n/a
Default

I have created a form in Word and when a collegue is filling out the form, I
would like a separate document to open if a certain checkbox is clicked.
Thank you in advanced.

"Graham Mayor" wrote:

It might help if you explained what you are trying to achieve.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


bold17 wrote:
Can I add a hyperlink into a macro?




  #4   Report Post  
Doug Robbins
 
Posts: n/a
Default

Create a macro that runs on exit from the checkbox and if the checkbox value
is true, have it open the document

If ActiveDocument.FormFields("Check1").CheckBox.Value = True Then
Documents.Open "filename"
End If

Replace filename with the path\filename of the document that you want to be
opened.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"bold17" wrote in message
...
I have created a form in Word and when a collegue is filling out the form,
I
would like a separate document to open if a certain checkbox is clicked.
Thank you in advanced.

"Graham Mayor" wrote:

It might help if you explained what you are trying to achieve.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


bold17 wrote:
Can I add a hyperlink into a macro?






  #5   Report Post  
bold17
 
Posts: n/a
Default

Thank you, that worked. However, if that box is checked I cannot work with
the form that the checked box is in. It continually sends me to the document
that the checked box is linked to. Is there a way to check the box, fill in
the form that it is linked to, then return to the original and complete it?

"Doug Robbins" wrote:

Create a macro that runs on exit from the checkbox and if the checkbox value
is true, have it open the document

If ActiveDocument.FormFields("Check1").CheckBox.Value = True Then
Documents.Open "filename"
End If

Replace filename with the path\filename of the document that you want to be
opened.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"bold17" wrote in message
...
I have created a form in Word and when a collegue is filling out the form,
I
would like a separate document to open if a certain checkbox is clicked.
Thank you in advanced.

"Graham Mayor" wrote:

It might help if you explained what you are trying to achieve.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


bold17 wrote:
Can I add a hyperlink into a macro?






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
hyperlink in a macro bold17 Microsoft Word Help 0 August 5th 05 06:10 PM
Macro Button Won't Stay on Toolbar caleb Microsoft Word Help 2 June 14th 05 11:59 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 03:25 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"