Hyper Link Screen Tips

BrWolv

New Member
Joined
Jun 18, 2011
Messages
37
Hi,
I am using VBA to edit all of my Hyperlink Screen Tips, which works really well on my master worksheet. I am looking to edit all the other Worksheet Hyperlinks as well. This is what I have run on my Master Sheet;
Sub HLSCREENTIP()
Dim hl As Hyperlink
Dim rng As Range
Dim hlTip As String
'// Refine range if needed
Set rng = Sheets("SoCal Master").UsedRange
'// To apply to the active sheet
'// Set rng = ActiveSheet.UsedRange
'// Tip to replace current tips
hlTip = "Press For BoM"

For Each hl In rng.Hyperlinks
hl.ScreenTip = hlTip
Next hl
End Sub

I need to change the Screen Tip for the individual sheets, and would like to use code to run through all of them (over 200). I can edit the second Tip, however, i cant seem to fingure out how to get it to run on all sheets (Except Sheet 1, which is the Master Sheet). Can someone help me please?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello again. The below is just a modification of my earlier code with the addition of a loop through all the worksheet in the workbook. It will skip the sheet named "SoCal Master"


Code:
Sub HLSCREENTIPWB()
    Dim ws As Worksheet
    Dim hl As Hyperlink
    Dim hlTip As String

    hlTip = "Press For BoM"

    For Each ws In Worksheets
        If ws.Name <> "SoCal Master" Then
            For Each hl In ws.UsedRange.Hyperlinks
                hl.ScreenTip = hlTip
            Next hl
        End If
    Next ws
End Sub

Related Post
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top