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!
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!
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" <noreply@nowhere.com> wrote in message
news:%23C2vOKxsFHA.2532@TK2MSFTNGP10.phx.gbl...
> 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!
>
>
Thanks Tom!
"Tom Ogilvy" <twogilvy@msn.com> wrote in message
news:%23K2kLoxsFHA.2792@tk2msftngp13.phx.gbl...
> 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" <noreply@nowhere.com> wrote in message
> news:%23C2vOKxsFHA.2532@TK2MSFTNGP10.phx.gbl...
> > 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!
> >
> >
>
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks