LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default More Conditional Formatting Woes

"Joel" wrote in message
...
I noticed something unusual with my excel. I selected on a blank workbook
cell A1 and went to Edit Menu - GOTO - SPECIAL - Lastcell. The cell
selected is
H16. Nothing is in H16. I tried to clearcontentts of H16 with no luck.
I
do the same thing on sheet 2 and the last cell is A1.

When using your code I found the UsedRange was selecting a larger area
than
the actual cells that had data. No sure why. Here is tthe code I used
(added
three lines). Step through code and check if objsht.UsedRange.Select is
selecting the same area on the two PCs.


Hi Joel, many thanks for responding.

I added this line

objsht.UsedRange.Select

after

Set objRange = objXL.Intersect(objSht.Range("K2:IV65536"), objSht.UsedRange)
'Start from Row 2

and it works fine on the other PC now. If only I knew why ;-)

Thanks again.

Regards,
Keith.

 
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
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
More Conditional Formatting Woes rmcgal Excel Discussion (Misc queries) 10 August 18th 05 10:44 PM
Date Formatting Woes Minitman[_4_] Excel Programming 7 December 16th 04 03:11 PM


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