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: 35
Default activecell.specialcells(xlCellTypeVisible) returns column refe

Thanks for that, very much appreciated.
It seems odd behaviour though - any reason for this?


"Tom Ogilvy" wrote:

A trick I first saw posted by David McRitchie

set rangeTwo = Intersect(rangeOne.specialcells(xlCellTypeVisible) ,rangeOne)

--
Regards,
Tom Ogilvy


"Noel" wrote in message
...
Hi, can anyone help?

I want to identify the visible cells (rangeTwo as range) within a given
range (rangeOne as range) ie

set rangeTwo = rangeOne.specialcells(xlCellTypeVisible)

This code seems to work unless rangeOne is a single cell - then rangeTwo

is
not contained in rangeOne at all (in fact it returns a reference to all

the
visible columns on my worksheet)...why?!!!!


Thanks again in advance

Noel






 
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
Index with mulitple value returns and muliple column returns solar+CSE Excel Worksheet Functions 4 June 12th 09 04:43 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
How do I convert the result of LARGE to the cell (or column) refe. Liam Judd Excel Worksheet Functions 1 November 17th 04 08:44 AM
Worksheet function & SpecialCells(xlCellTypeVisible)? Charley Kyd[_2_] Excel Programming 2 March 5th 04 05:46 PM
XP VBA: Range("A2", ActiveCell.SpecialCells(xlLastCell)).Select wessman Excel Programming 2 July 23rd 03 06:33 PM


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