Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Remove HTML links in excel

Hello all,

Can someone let me know if its possible to remove a whole bunch of html
links in excel. I have opened a html page with excel which naturally has
a number of links in it. I can remove links individually by simply right
clicking on a link and then click on 'remove hyperlink' however it
appears impossible to remove more than one hyperlink in a range of cells
at the same time.

Any help will be greatly appreciated.

Cheers

Carlton



*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Remove HTML links in excel

Hyperlinks on a worksheet are stored in the Hyperlink Collection. The
following removes all hyperlinks in a worksheet

Dim lnk As Long
With Worksheets("Sheet1")
For lnk = 1 To .Hyperlinks.Count
.Hyperlinks.Delete
Next
End With


--
Cheers
Nigel



"Carlton Patterson" wrote in message
...
Hello all,

Can someone let me know if its possible to remove a whole bunch of html
links in excel. I have opened a html page with excel which naturally has
a number of links in it. I can remove links individually by simply right
clicking on a link and then click on 'remove hyperlink' however it
appears impossible to remove more than one hyperlink in a range of cells
at the same time.

Any help will be greatly appreciated.

Cheers

Carlton



*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Remove HTML links in excel

Hi Nigel,


Thanks for responding.

Excuse my ignorance, but can you tell me where I need to place the code
you just sent?

Cheers mate.

Carlton


*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Remove HTML links in excel

Hi Nigel,


Thanks for responding.

Excuse my ignorance, but can you tell me where I need to place the code
you just sent?

Cheers mate.

Carlton


*** Sent via Developersdex http://www.developersdex.com ***
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Remove HTML links in excel

Hi,

I keep on the getting the message that the following is invalid outside
procedu

With Worksheets("Sheet1")

Any help would be appreciated.

Cheers

Carlton


*** Sent via Developersdex http://www.developersdex.com ***


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Remove HTML links in excel

Not tested the code, but it goes in a sub

Sub RemoveHTML()
Dim lnk As Long
With Worksheets("Sheet1")
For lnk = 1 To .Hyperlinks.Count
.Hyperlinks.Delete
Next
End With
End Sub

--
HTH

Bob Phillips

"Carlton Patterson" wrote in message
...
Hi,

I keep on the getting the message that the following is invalid outside
procedu

With Worksheets("Sheet1")

Any help would be appreciated.

Cheers

Carlton


*** Sent via Developersdex http://www.developersdex.com ***



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Remove HTML links in excel

Bob,

That worked fine.

Is there any chance you could help me out with the other request I
posted on this group? It that post I asked whether if someone could show
me how to program excel to remove blank rows in an spreadsheet.

Thanks again.

Carltoln

*** Sent via Developersdex http://www.developersdex.com ***
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Remove HTML links in excel

You posted that it works okay.

--
HTH

Bob Phillips

"Carlton Patterson" wrote in message
...
Bob,

That worked fine.

Is there any chance you could help me out with the other request I
posted on this group? It that post I asked whether if someone could show
me how to program excel to remove blank rows in an spreadsheet.

Thanks again.

Carltoln

*** Sent via Developersdex http://www.developersdex.com ***



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
How-To remove HTML from EXCEL 97 File? Pedro Sanchez IV Excel Worksheet Functions 1 July 24th 09 06:26 PM
Links to html files in Excel? cornets Excel Discussion (Misc queries) 3 March 24th 07 05:42 PM
Unable to remove objects pasted into Excel from HTML grid kydan47 Excel Worksheet Functions 3 July 22nd 06 07:59 PM
Remove html markup tags in an EXCEL cell? glennwhite Excel Discussion (Misc queries) 3 June 5th 06 07:25 AM
Use excel in html format change the links Eric van der Linden Excel Programming 0 February 4th 04 02:12 PM


All times are GMT +1. The time now is 11:28 PM.

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"