#1   Report Post  
brmauer
 
Posts: n/a
Default Copy all Screentips

I have a range of cells and in each cell is a hyperlink. Assocaiated with
each hyperlink is a screentip. What code would you use to go to each cell
and get the screentip and put in an array?
  #2   Report Post  
Rowan
 
Posts: n/a
Default

This should help:

Sub ScreenTip()

Dim hp As Hyperlink
Dim stArray() As Variant
Dim i As Integer

i = 0
For Each hp In ActiveSheet.Hyperlinks
ReDim Preserve stArray(i)
stArray(i) = hp.ScreenTip
i = i + 1
Next hp

'Do something with stArray

End Sub

Regards
Rowan

"brmauer" wrote:

I have a range of cells and in each cell is a hyperlink. Assocaiated with
each hyperlink is a screentip. What code would you use to go to each cell
and get the screentip and put in an array?

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
How do I copy only the month from a date CCW Excel Worksheet Functions 2 April 15th 05 02:26 AM
Copy worksheets with formulas between different workbooks Tim Excel Discussion (Misc queries) 3 March 31st 05 12:40 PM
Copy Function Genie Bohn Excel Discussion (Misc queries) 0 March 23rd 05 12:28 AM
Copy and pasting graphs to PowerPoint JZip Excel Discussion (Misc queries) 0 January 6th 05 08:29 PM
how do I make a copy of a worksheet and retain formulas but not data FireBrick Setting up and Configuration of Excel 2 December 29th 04 07:33 PM


All times are GMT +1. The time now is 12:35 AM.

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

About Us

"It's about Microsoft Excel"