
Sub linkamelo_tutto()
Dim rCell As Range
Dim ws As Worksheet
Dim Lhyper As Long
On Error Resume Next
Application.DisplayAlerts = False
Sheets("Hypers").Delete
On Error GoTo 0
Application.DisplayAlerts = True
Sheets.Add().Name = "Hypers"
For Each ws In Worksheets
If ws.Name <> "Hypers" Then
For Lhyper = 1 To ws.UsedRange.Hyperlinks.Count
ws.Hyperlinks(Lhyper).Range.Copy
With Sheets("Hypers").Cells(Rows.Count, 1).End(xlUp)
.Offset(1, 0).PasteSpecial
.Offset(1, 1) = ws.Hyperlinks(Lhyper).Range.Address
End With
Application.CutCopyMode = False
Next Lhyper
End If
Next ws
End Sub
|
Option Explicit
Sub Nomesub()
Dim wb As Workbook
Dim ws As Worksheet
Dim rngC As Range, Cella As Range
Set wb = ThisWorkbook
Set ws = wb.Sheets(1)
With ws
Set rngC = .Range("A1:D10") ''modificare secondo necessità
For Each Cella In rngC
If Cella.Hyperlinks.Count > 0 Then
''applico la formattazione condizionale
End If
Next Cella
Set rngC = Nothing
End With
Set ws = Nothing
Set wb = Nothing
End Sub
|
