Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Hyperlink programing question

I have seen this done before in the past, like 4 years ago with Excel95, but
every attempt I have made to recreate this has failed. Please help.
I want to use a cell to enter my hyperlink location such as C:\Myfile or
www.google.com.
Now I want VB to look at the cell, lets say cell A1 has this hyperlink in
it, and perform the ActiveWorkbook.FollowHyperlink Address command to open
Windows Explorer, or Internet Explorer, to that location.
How do I get VB to follow a hyperlink that has been entered in a cell anf
then, if needed, opening the appropriate program like Windows Explorer or
Internet Explorer? Or could it be a different command?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Hyperlink programing question

Hi Stranger! (How about a real name?)

---"SJW_OST" schrieb ...
I have seen this done before in the past, like 4 years ago with
Excel95, but
[...]
How do I get VB to follow a hyperlink that has been entered in a cell
anf
then, if needed, opening the appropriate program like Windows
Explorer or
Internet Explorer? Or could it be a different command?


(1) Hyperlinks have been introduced with Office 97?!

(2) Try something like this:

Range("A1").Hyperlinks(1).Follow


Greetings from Vienna, Austria,
-Robert Gelbmann-

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Hyperlink programing question

Well hello there buddy! Hope you are doing well.
Thanks for the Excel history lesson. As I mentioned, it has been a while
sense I saw this done so my Excel version, obviously, was off. Sorry 'bout
that.

When I try your solution, I keep getting Run-time error '9': Subscript out
of range.

I have entered H:\ in cell A1 on Sheet1.
I then went into VB Editor and entered;

Sub A()
Range("A1").Hyperlinks(1).Follow
End Sub

Is there something I am doing incorrectly? Have I missed something?

Oh yea, my name is Stephen :-)


"Robert Gelbmann" wrote:

Hi Stranger! (How about a real name?)

---"SJW_OST" schrieb ...
I have seen this done before in the past, like 4 years ago with
Excel95, but
[...]
How do I get VB to follow a hyperlink that has been entered in a cell
anf
then, if needed, opening the appropriate program like Windows
Explorer or
Internet Explorer? Or could it be a different command?


(1) Hyperlinks have been introduced with Office 97?!

(2) Try something like this:

Range("A1").Hyperlinks(1).Follow


Greetings from Vienna, Austria,
-Robert Gelbmann-


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Hyperlink programing question

Ok, so I am a 'RON. I didn't enter the "hyperlink" I just typed H:\ into cell
A1. Once I entered H:\ as a hyperlink, your code worked like I wanted.

Thank you :-)

"SJW_OST" wrote:

Well hello there buddy! Hope you are doing well.
Thanks for the Excel history lesson. As I mentioned, it has been a while
sense I saw this done so my Excel version, obviously, was off. Sorry 'bout
that.

When I try your solution, I keep getting Run-time error '9': Subscript out
of range.

I have entered H:\ in cell A1 on Sheet1.
I then went into VB Editor and entered;

Sub A()
Range("A1").Hyperlinks(1).Follow
End Sub

Is there something I am doing incorrectly? Have I missed something?

Oh yea, my name is Stephen :-)


"Robert Gelbmann" wrote:

Hi Stranger! (How about a real name?)

---"SJW_OST" schrieb ...
I have seen this done before in the past, like 4 years ago with
Excel95, but
[...]
How do I get VB to follow a hyperlink that has been entered in a cell
anf
then, if needed, opening the appropriate program like Windows
Explorer or
Internet Explorer? Or could it be a different command?


(1) Hyperlinks have been introduced with Office 97?!

(2) Try something like this:

Range("A1").Hyperlinks(1).Follow


Greetings from Vienna, Austria,
-Robert Gelbmann-


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Hyperlink programing question

Now that I have this down, I think, how can I use a hyperlink in this fashion
as a save location?

Thanks for your help,
Stephen

"SJW_OST" wrote:

Ok, so I am a 'RON. I didn't enter the "hyperlink" I just typed H:\ into cell
A1. Once I entered H:\ as a hyperlink, your code worked like I wanted.

Thank you :-)

"SJW_OST" wrote:

Well hello there buddy! Hope you are doing well.
Thanks for the Excel history lesson. As I mentioned, it has been a while
sense I saw this done so my Excel version, obviously, was off. Sorry 'bout
that.

When I try your solution, I keep getting Run-time error '9': Subscript out
of range.

I have entered H:\ in cell A1 on Sheet1.
I then went into VB Editor and entered;

Sub A()
Range("A1").Hyperlinks(1).Follow
End Sub

Is there something I am doing incorrectly? Have I missed something?

Oh yea, my name is Stephen :-)


"Robert Gelbmann" wrote:

Hi Stranger! (How about a real name?)

---"SJW_OST" schrieb ...
I have seen this done before in the past, like 4 years ago with
Excel95, but
[...]
How do I get VB to follow a hyperlink that has been entered in a cell
anf
then, if needed, opening the appropriate program like Windows
Explorer or
Internet Explorer? Or could it be a different command?

(1) Hyperlinks have been introduced with Office 97?!

(2) Try something like this:

Range("A1").Hyperlinks(1).Follow


Greetings from Vienna, Austria,
-Robert Gelbmann-




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
totally newbie question about macros and programing it Dexter[_3_] Excel Programming 3 April 19th 08 01:15 PM
excel 2007 macro/vb programing question Keith Excel Programming 10 November 2nd 07 02:55 PM
excel question borderline programing gimp New Users to Excel 1 June 25th 06 06:01 AM
Hyperlink Question nastech Excel Discussion (Misc queries) 2 January 1st 06 11:12 PM
Hyperlink Question Phil Osman Excel Discussion (Misc queries) 4 March 29th 05 03:11 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"