Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Shade cells with links to external workbooks

Hello. I am trying to write code that will scan every sheet within a
workbook and shade each cell that has a link to an external file (ie .xls)?
I am only concerned about cells, not named ranges, pictures, etc...

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Shade cells with links to external workbooks

ActiveSheet.UsedRange.Interior.ColorIndex = xlNone
for each cell in Activesheet.UsedRange.SpecialCells(xlFormulas)
if instr(1,cell.Formula,"[",vbTextcompare) Then
cell.Interior.ColorIndex = 3
end if
Next

--
Regards,
Tom Ogilvy

"Steph" wrote in message
...
Hello. I am trying to write code that will scan every sheet within a
workbook and shade each cell that has a link to an external file (ie

..xls)?
I am only concerned about cells, not named ranges, pictures, etc...

Thanks!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Shade cells with links to external workbooks

Thanks Tom!

"Tom Ogilvy" wrote in message
...
ActiveSheet.UsedRange.Interior.ColorIndex = xlNone
for each cell in Activesheet.UsedRange.SpecialCells(xlFormulas)
if instr(1,cell.Formula,"[",vbTextcompare) Then
cell.Interior.ColorIndex = 3
end if
Next

--
Regards,
Tom Ogilvy

"Steph" wrote in message
...
Hello. I am trying to write code that will scan every sheet within a
workbook and shade each cell that has a link to an external file (ie

.xls)?
I am only concerned about cells, not named ranges, pictures, etc...

Thanks!






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
shade one cell that will shade multiple cells Walt Excel Discussion (Misc queries) 1 November 17th 09 03:46 PM
how do I break links to external workbooks en masse? Dave F Excel Discussion (Misc queries) 7 November 9th 07 09:52 PM
how do I activate links without opening external workbooks? teh_chucksta Excel Discussion (Misc queries) 0 August 29th 05 11:22 PM
Find cells with external links External link Links and Linking in Excel 4 April 3rd 05 08:09 PM
Identifying cells with external links using VBA Mark Jarvis Excel Programming 1 November 21st 03 03:50 AM


All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"