#1   Report Post  
Posted to microsoft.public.vb.general.discussion,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel links

Hi
Does anybody know a way of 'cleaning' an Excel file, that
has got links 'stuck' in it?

i.e. some bug has been invoked whereby it keeps asking me
whether I want to update links to other workbooks, where
there are no links to other workbooks in the file.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Excel links

Bugga,

I wote this last week, it seems like just what you need.
Sub removeHyperLinks()

'Ed Lisay
'September 3, 2003
'Purpose: Remove all the hyperlinks on the active worksheet
'Unfortunitly, it also removes the cell formating too


Dim mySheetName As String
Dim myLastCol As String
Dim myLastRow As String

'get the name of the active sheet
Range("A1").Select
mySheetName = ActiveCell.Worksheet.Name

'get the row and column of the last used cell
ActiveCell.SpecialCells(xlLastCell).Select
myLastCol = ActiveCell.Column
myLastRow = ActiveCell.Row

'loop through the sheet and remove all the hyperlinks
For rwIndex = 1 To myLastRow
For colIndex = 1 To myLastCol
With Worksheets(mySheetName).Cells(rwIndex,
colIndex)
.Hyperlinks.Delete 'funny this doesn't
error out if there is no link
End With
Next colIndex
Next rwIndex

Range("A1").Select
End Sub

-----Original Message-----
Hi
Does anybody know a way of 'cleaning' an Excel file, that
has got links 'stuck' in it?

i.e. some bug has been invoked whereby it keeps asking me
whether I want to update links to other workbooks, where
there are no links to other workbooks in the file.
.

  #3   Report Post  
Posted to microsoft.public.vb.general.discussion,microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Excel links

Bugga,

There is a routine in my XspandXL add-in that should do the job for you. You
can download a time limited version off my site.

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


"Bugga Letsky" wrote in message
...
Hi
Does anybody know a way of 'cleaning' an Excel file, that
has got links 'stuck' in it?

i.e. some bug has been invoked whereby it keeps asking me
whether I want to update links to other workbooks, where
there are no links to other workbooks in the file.



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
Slow opening links between workbooks with links created in 2003 Russell Excel Discussion (Misc queries) 0 December 14th 09 02:59 PM
Update links box gives Continue or Edit Links dialog KarenF Excel Discussion (Misc queries) 0 May 18th 07 01:17 PM
Edit Links: Changing links on a protected worksheet Halibut68 Excel Discussion (Misc queries) 0 April 28th 06 11:03 AM
EXCEL - LINKS cannot easily get list of all links & names in book Tuba Joe Excel Worksheet Functions 1 September 29th 05 10:33 PM
can't update links...can't find links GJR3599 Excel Discussion (Misc queries) 1 April 4th 05 04:56 PM


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