PC Review


Reply
Thread Tools Rate Thread

Deactivate all the hyperlinks in an entire workbook?

 
 
SouthAfricanStan
Guest
Posts: n/a
 
      10th Nov 2006
How do I do this?


 
Reply With Quote
 
 
 
 
VBA Noob
Guest
Posts: n/a
 
      10th Nov 2006
Think this might work

Sub DelAllHyperlinks()

Dim WS_Count As Integer
Dim I As Integer

WS_Count = ActiveWorkbook.Worksheets.Count

For I = 1 To WS_Count

Sheets(I).Hyperlinks.Delete
Next I

End Sub

VBA Nob
SouthAfricanStan wrote:
> How do I do this?


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      10th Nov 2006
Sub Delete_Hyperlinks()
Application.ScreenUpdating = False
Dim n As Single
For n = 1 To Sheets.Count
Sheets(n).UsedRange.Cells.Hyperlinks.Delete
Next n
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP

On Fri, 10 Nov 2006 09:14:29 +0200, "SouthAfricanStan" <me@there> wrote:

>How do I do this?
>


 
Reply With Quote
 
SouthAfricanStan
Guest
Posts: n/a
 
      12th Nov 2006
Thanks so far.
I'm a newby as far as this part of excel is concerned.
Please advise me (key by key) how to do this, or perhaps there are relevant
tutorials available on the internet?

"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:(E-Mail Removed)...
> Sub Delete_Hyperlinks()
> Application.ScreenUpdating = False
> Dim n As Single
> For n = 1 To Sheets.Count
> Sheets(n).UsedRange.Cells.Hyperlinks.Delete
> Next n
> Application.ScreenUpdating = True
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Fri, 10 Nov 2006 09:14:29 +0200, "SouthAfricanStan" <me@there> wrote:
>
>>How do I do this?
>>

>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      12th Nov 2006
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

SouthAfricanStan wrote:
>
> Thanks so far.
> I'm a newby as far as this part of excel is concerned.
> Please advise me (key by key) how to do this, or perhaps there are relevant
> tutorials available on the internet?
>
> "Gord Dibben" <gorddibbATshawDOTca> wrote in message
> news:(E-Mail Removed)...
> > Sub Delete_Hyperlinks()
> > Application.ScreenUpdating = False
> > Dim n As Single
> > For n = 1 To Sheets.Count
> > Sheets(n).UsedRange.Cells.Hyperlinks.Delete
> > Next n
> > Application.ScreenUpdating = True
> > End Sub
> >
> >
> > Gord Dibben MS Excel MVP
> >
> > On Fri, 10 Nov 2006 09:14:29 +0200, "SouthAfricanStan" <me@there> wrote:
> >
> >>How do I do this?
> >>

> >


--

Dave Peterson
 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      12th Nov 2006
If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and Insert>Module. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run the macro by going to Tool>Macro>Macros.

You can also assign this macro to a button or a shortcut key combo.


Gord Dibben MS Excel MVP


On Sun, 12 Nov 2006 18:11:02 +0200, "SouthAfricanStan" <me@there> wrote:

>Thanks so far.
>I'm a newby as far as this part of excel is concerned.
>Please advise me (key by key) how to do this, or perhaps there are relevant
>tutorials available on the internet?
>
>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>news:(E-Mail Removed)...
>> Sub Delete_Hyperlinks()
>> Application.ScreenUpdating = False
>> Dim n As Single
>> For n = 1 To Sheets.Count
>> Sheets(n).UsedRange.Cells.Hyperlinks.Delete
>> Next n
>> Application.ScreenUpdating = True
>> End Sub
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Fri, 10 Nov 2006 09:14:29 +0200, "SouthAfricanStan" <me@there> wrote:
>>
>>>How do I do this?
>>>

>>

>


Gord Dibben MS Excel MVP
 
Reply With Quote
 
SouthAfricanStan
Guest
Posts: n/a
 
      12th Nov 2006
Thank You!

"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:(E-Mail Removed)...
> If not familiar with VBA and macros, see David McRitchie's site for more
> on
> "getting started".
>
> http://www.mvps.org/dmcritchie/excel/getstarted.htm
>
> In the meantime..........
>
> First...create a backup copy of your original workbook.
>
> To create a General Module, hit ALT + F11 to open the Visual Basic Editor.
>
> Hit CRTL + r to open Project Explorer.
>
> Find your workbook/project and select it.
>
> Right-click and Insert>Module. Paste the code in there. Save the
> workbook and hit ALT + Q to return to your workbook.
>
> Run the macro by going to Tool>Macro>Macros.
>
> You can also assign this macro to a button or a shortcut key combo.
>
>
> Gord Dibben MS Excel MVP
>
>
> On Sun, 12 Nov 2006 18:11:02 +0200, "SouthAfricanStan" <me@there> wrote:
>
>>Thanks so far.
>>I'm a newby as far as this part of excel is concerned.
>>Please advise me (key by key) how to do this, or perhaps there are
>>relevant
>>tutorials available on the internet?
>>
>>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>>news:(E-Mail Removed)...
>>> Sub Delete_Hyperlinks()
>>> Application.ScreenUpdating = False
>>> Dim n As Single
>>> For n = 1 To Sheets.Count
>>> Sheets(n).UsedRange.Cells.Hyperlinks.Delete
>>> Next n
>>> Application.ScreenUpdating = True
>>> End Sub
>>>
>>>
>>> Gord Dibben MS Excel MVP
>>>
>>> On Fri, 10 Nov 2006 09:14:29 +0200, "SouthAfricanStan" <me@there> wrote:
>>>
>>>>How do I do this?
>>>>
>>>

>>

>
> Gord Dibben MS Excel MVP



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deactivate email hyperlinks in Excel 2007 SLA Microsoft Excel Misc 3 22nd Jul 2009 05:18 PM
how do I deactivate multiple e-mail address hyperlinks in excel =?Utf-8?B?a2F0dG5pcA==?= Microsoft Excel Setup 2 6th Feb 2005 02:27 AM
Workbook Deactivate incjourn Microsoft Excel Programming 1 14th Sep 2004 03:51 PM
Deactivate ALL hyperlinks-VBS? Fanden Microsoft Excel Misc 3 14th Apr 2004 06:58 PM
Re: deactivate range of hyperlinks J.E. McGimpsey Microsoft Excel Misc 2 25th Nov 2003 04:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.