![]() |
|
#1
|
||||
|
||||
![]() As I have already said, the code is for a selected hyperlink. If you don't have a hyperlink selected, the code simply tells you so. As for the rest or your post, I have no idea what you mean by steps 2 and 3, let alone how you intend to send anything to an exe. You've provided no context for anyone to work with.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
I'am sorry, i should check it out what you said before. I missed that selection part...
And doing VB for 2 days ... Your code works great, thank you ! I don't have issue about sending arguments to an exe, i found the shell cmd which is working fine : Code:
Call Shell("""" & strProgramPath & """" & strArgument & """", vbNormalFocus) In order to understand .Hyperlinlk is an array of all selected Word hyperlinks ? Is there a way to work with it or should i create a new variable as myarray() ? BR, Vincent |
#3
|
||||
|
||||
![]() Quote:
Well, it's quite easy to loop through all the Hyperlink objects in the Hyperlinks collection, which is basically what your original code was doing, but you need to explain what the loop is supposed to achieve - do you just want to get a listing (which your original code does - then sends it to a message box), or do you want to process each hyperlink as it's found, or even do both?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
![]()
I gonna stop to do this search in vba that i don't know because even if you do show me how to get all hyperlinks collection and get the one i am interesting in, it is a code i couldn't maintain further.
I am going to send Documetn Path in argument to my exe and my exe gonna do all the rest. vba seems to be interesting but i don't have any formation. Will do ![]() Thanks a lot macropod for all your answers. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding tables to Created word document whilst other word document open Help | rpb925 | Word VBA | 18 | 03-30-2016 04:45 PM |
![]() |
Cardinal2 | Word | 1 | 11-30-2015 07:42 PM |
![]() |
__Data | Word | 1 | 06-30-2015 11:03 PM |
![]() |
roosje | Word | 1 | 07-09-2014 12:13 PM |
![]() |
vijayaram | Word | 1 | 12-30-2009 08:25 AM |