Advertisement

01.26.2008 at 12:57PM PST, ID: 23113752
[x]
Attachment Details

Need a macro to remove all hyperlinks from a worksheet

Asked by cogitate4u in Microsoft Excel Spreadsheet Software

Tags: Microsoft, Excel, 2003, vba macro

What's the syntax for hyperlinks? The sample below is what I'm using to remove all images from a worksheet.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
Sub RemoveAllShapes()
   Dim shObj As Object    'Worksheets and Chart sheets
   Dim s As Shape
   Dim i As Long, ttl As Long
 
   For Each shObj In ActiveWorkbook.Sheets
      ttl = shObj.Shapes.Count
      For i = ttl To 1 Step -1
         shObj.Shapes(i).Delete
      Next
   Next
End Sub
[+][-]01.26.2008 at 01:22PM PST, ID: 20751392

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 06:02AM PST, ID: 20796545

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003, vba macro
Sign Up Now!
Solution Provided By: mwolfe02
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.29.2008 at 11:38PM PST, ID: 21020580

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628