Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default remove hyperlinks from objects in the excel workbook using vb


hi
i am trying to remove hyperlinks that are linked to objects in th
excel workbook using vb.
the code that i am using is as follows:

If wSheet.Hyperlinks(i).Type < 0 Then
wSheet.Hyperlinks(i).Delete
ObjExcel.Save
hashyperlinks = True
End If

this code does not remove hyperlinks from the organizational charts
flow charts, cycle diagrams, etc. it just removes hyperlinks from th
images
can some1 pls help.

thanks in advanc

--
asmit
-----------------------------------------------------------------------
asmita's Profile: http://www.excelforum.com/member.php...fo&userid=2517
View this thread: http://www.excelforum.com/showthread.php?threadid=38674

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default remove hyperlinks from objects in the excel workbook using vb


The code below removes all hyperlinks in a worksheet.
To remove special types re-enable the commented out lines and amend a
necessary.

Code
-------------------

Sub untested()
' Hyperlink types:
'oHyperlinkInlineShape, msoHyperlinkRange, msoHyperlinkShape.
'---------------------------------------------------------------------------------
For Each h In ActiveSheet.Hyperlink
'If h.Type = "??" Then
h.Delete
'End If
Next
End Sub

-------------------

--
Brian

-----------------------------------------------------------------------
BrianB's Profile: http://www.excelforum.com/member.php...tinfo&userid=5
View this thread: http://www.excelforum.com/showthread.php?threadid=38674

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
Is there a way to remove old cell format objects from Excel? DavidFarnsworth Excel Discussion (Misc queries) 0 January 13th 07 05:00 AM
remove hyperlinks Excel 2003 Klodney Excel Discussion (Misc queries) 2 September 27th 06 09:11 PM
Unable to remove objects pasted into Excel from HTML grid kydan47 Excel Worksheet Functions 3 July 22nd 06 07:59 PM
Remove all macros and objects in Excel, Save and Quit [email protected] Excel Discussion (Misc queries) 0 June 2nd 06 12:24 PM
Unable to remove Sheet objects in the Microsoft Excel Objects Adrian[_7_] Excel Programming 1 August 26th 04 10:49 PM


All times are GMT +1. The time now is 02:23 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"