PC Review


Reply
Thread Tools Rate Thread

cycle through hyperlinks in column b

 
 
SteveC
Guest
Posts: n/a
 
      23rd Jul 2009
This macro doesn't work. It's supposed to follow the hyperlinks on each row
on columnn b. I get the following error: "Run-time error '9': Subscript
out of range"

any suggestions? thanks...

Sub FollowHyperlinks()
Dim c As Range
For Each c In ActiveSheet.Range("b11:b200")
c.Hyperlinks.Item(1).Follow
Next
End Sub
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      23rd Jul 2009
Your posted code should work if the range is fully packed with hyperlinks.
--
Gary''s Student - gsnu200859


"SteveC" wrote:

> This macro doesn't work. It's supposed to follow the hyperlinks on each row
> on columnn b. I get the following error: "Run-time error '9': Subscript
> out of range"
>
> any suggestions? thanks...
>
> Sub FollowHyperlinks()
> Dim c As Range
> For Each c In ActiveSheet.Range("b11:b200")
> c.Hyperlinks.Item(1).Follow
> Next
> End Sub

 
Reply With Quote
 
SteveC
Guest
Posts: n/a
 
      23rd Jul 2009
thanks gary -- the data in column b are actually formulas that reference
column a:

cell B15: =hyperlink(A15)

data in Column B are actually Internet URLs made with customized concatenate
formuals -- they are orders to a website. I don't want to actually open up a
webpage on my Internet browser, I just want to send the orders to a website.

I thought automaticlly having VBA "click" on hyperlinks in column b would be
the way to do it, but I think I was wrong about that. thanks...

"Gary''s Student" wrote:

> Your posted code should work if the range is fully packed with hyperlinks.
> --
> Gary''s Student - gsnu200859
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding a column of hyperlinks behind a column of numbers cmiling Microsoft Excel New Users 2 20th Nov 2009 05:02 PM
vba code to cycle through each column in a sheet GJones Microsoft Excel Programming 0 16th Sep 2004 07:54 PM
Re: vba code to cycle through each column in a sheet Ron Rosenfeld Microsoft Excel Programming 0 16th Sep 2004 07:52 PM
vba code to cycle through each column in a sheet =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Programming 0 16th Sep 2004 07:31 PM
How to cycle through pivot table column labels? RADO Microsoft Excel Programming 1 5th Nov 2003 01:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 AM.