LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Last used cell in column with shading


Hi all,
I use this to toggle from a cell on top of the sheet,
to the cell, one below the last used cell in Col P.

Code
-------------------
Sub TopBottomToggle5()
If ActiveCell.Address < "$G$5" Then
Range("G5").Select
Else
Range("P65536").End(xlUp).Offset(1, 0).Select
End If
End Sub

-------------------
It works as it should. My twist is that, in Column P there may be
pattern in the cells below the last used cell.
The pattern is variable as far as the number of cells below the las
used cell it will populate.
The pattern is put there by another macro, usin
Code
-------------------
Interior.Pattern = xlPatternGray
-------------------
not conditional formating.
I am trying to make the above macro go to the "last used cell in Colum
P which includes if the cell has a pattern in it.
So say, P1:P10 have values and P11:P15 have the pattern, then my activ
cell address should be P16.

Any direction appreciated

--
Desert Piranh

-----------------------------------------------------------------------
Desert Piranha's Profile: http://www.excelforum.com/member.php...fo&userid=2893
View this thread: http://www.excelforum.com/showthread.php?threadid=49111

 
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
Help w/ cell shading across entire column-when a criteria has been lilly8008 New Users to Excel 1 December 18th 09 02:19 PM
Format Column Chart Shading Bethb Charts and Charting in Excel 2 February 12th 08 10:31 PM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM
shading a rowwhen a time is entered but no shading when 0 is enter fomula problems Excel Worksheet Functions 7 October 23rd 05 08:44 PM
How to add shading to more than one column at a time? sweeps New Users to Excel 3 October 13th 05 02:47 PM


All times are GMT +1. The time now is 08:46 AM.

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"