mrvic90631
New Member
I have a Excel sheet with Thousands of hyperlinks and i need to be able to send it to customers as a excel file with no hyperlinks.
I have this code and it works just fine and gets the job done but i keep getting a error that states "Object Variable or With block variable not set." what am i doing wrong? test file uploaded.
I have this code and it works just fine and gets the job done but i keep getting a error that states "Object Variable or With block variable not set." what am i doing wrong? test file uploaded.
Code:
Sub DeleteHyperlinks()
Dim sht As Worksheet
For Each sht In ThisWorkbook.Worksheets
Cells.Select
Range("A1").Activate
Selection.Hyperlinks.Delete
ActiveSheet.Next.Select
Next sht
End Sub