Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default remove hyperlinks in a worksheet all in the same time

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed all
in the same time?


Thanks you


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default remove hyperlinks in a worksheet all in the same time

Try this little macro:

Sub HyperBeGone()
For Each r In ActiveSheet.UsedRange
If r.Hyperlinks.Count 0 Then
r.Clear
End If
Next
End Sub

--
Gary''s Student - gsnu2007f


"Kent" wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed all
in the same time?


Thanks you



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default remove hyperlinks in a worksheet all in the same time

Thank you Gary, what I need is only to remove the hyperlink, but not delete
the content. Any new idea please?


Kent



"Gary''s Student" ...
Try this little macro:

Sub HyperBeGone()
For Each r In ActiveSheet.UsedRange
If r.Hyperlinks.Count 0 Then
r.Clear
End If
Next
End Sub

--
Gary''s Student - gsnu2007f


"Kent" wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed
all
in the same time?


Thanks you





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default remove hyperlinks in a worksheet all in the same time

select your range to clean
alt-f11 (to see the VBE)
ctrl-g (to see the immediate window)

type this and hit enter
selection.hyperlinks.delete

And then close this window and go back to excel.

Kent wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed all
in the same time?

Thanks you


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default remove hyperlinks in a worksheet all in the same time

I don't think I'd use r.clear.

That'll clean up way more than just the hyperlink.

Gary''s Student wrote:

Try this little macro:

Sub HyperBeGone()
For Each r In ActiveSheet.UsedRange
If r.Hyperlinks.Count 0 Then
r.Clear
End If
Next
End Sub

--
Gary''s Student - gsnu2007f

"Kent" wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed all
in the same time?


Thanks you




--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default remove hyperlinks in a worksheet all in the same time

Dear Dave,

I can't follow your instruction starting from "ctrl-g (to see the immediate
window)"
and where should I type "selection.hyperlinks.delete"?



"Dave Peterson"
...
select your range to clean
alt-f11 (to see the VBE)
ctrl-g (to see the immediate window)

type this and hit enter
selection.hyperlinks.delete

And then close this window and go back to excel.

Kent wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed
all
in the same time?

Thanks you


--

Dave Peterson



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default remove hyperlinks in a worksheet all in the same time

Use alt-f11 to open the VBE.
Hit control-g to see the immediate window
(Or use View|Immediate Window)

type or paste that "selection.hyperlinks.delete" into that immediate window.

Kent wrote:

Dear Dave,

I can't follow your instruction starting from "ctrl-g (to see the immediate
window)"
and where should I type "selection.hyperlinks.delete"?

"Dave Peterson"
...
select your range to clean
alt-f11 (to see the VBE)
ctrl-g (to see the immediate window)

type this and hit enter
selection.hyperlinks.delete

And then close this window and go back to excel.

Kent wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed and
replaced by characters one by one. HOw can these hyperlinks be removed
all
in the same time?

Thanks you


--

Dave Peterson


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default remove hyperlinks in a worksheet all in the same time

Thank you Dave, I've done it.




"Dave Peterson"
...
Use alt-f11 to open the VBE.
Hit control-g to see the immediate window
(Or use View|Immediate Window)

type or paste that "selection.hyperlinks.delete" into that immediate
window.

Kent wrote:

Dear Dave,

I can't follow your instruction starting from "ctrl-g (to see the
immediate
window)"
and where should I type "selection.hyperlinks.delete"?

"Dave Peterson"
...
select your range to clean
alt-f11 (to see the VBE)
ctrl-g (to see the immediate window)

type this and hit enter
selection.hyperlinks.delete

And then close this window and go back to excel.

Kent wrote:

Dear all,

I have got some hyperlinks in my excel worksheet which may be removed
and
replaced by characters one by one. HOw can these hyperlinks be removed
all
in the same time?

Thanks you

--

Dave Peterson


--

Dave Peterson



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 do I remove many hyperlinks from a spreadsheet at one time? davey Excel Discussion (Misc queries) 19 November 15th 08 02:24 PM
Remove Hyperlinks from multiple cells at the same time Remove Hyperlinks from multiple cells Excel Discussion (Misc queries) 1 March 20th 06 03:29 AM
How do I remove ALL hyperlinks from a large worksheet? RNewell Excel Discussion (Misc queries) 1 June 30th 05 05:22 PM
How to remove all hyperlinks from a worksheet in Excel? Amos Excel Worksheet Functions 4 March 6th 05 11:16 PM
remove all Hyperlinks at one time. afglass Excel Discussion (Misc queries) 2 January 2nd 05 05:47 PM


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