Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How select/define cells with FIND method (maybe together with SpecialCells)

I have seen a snippet somewhere to fast and easy select cells and cell areas
by using Find method. Maybe it was in combination with Specialcells. Are
there any of you having a snippet of this on the shelf? Or in your head?

I need to define a PrintArea for all the pages containing cells.visible =
True and think maybe I can do this by specify the area as all cells where
xlCellTypeVisible = False

/Regards


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default How select/define cells with FIND method (maybe together with SpecialCells)

Dim rng As Range
Set rng = ActiveSheet.Cells.SpecialCells _
(xlCellTypeVisible)

HTH
Jason
Atlanta, GA

-----Original Message-----
I have seen a snippet somewhere to fast and easy select

cells and cell areas
by using Find method. Maybe it was in combination with

Specialcells. Are
there any of you having a snippet of this on the shelf?

Or in your head?

I need to define a PrintArea for all the pages

containing cells.visible =
True and think maybe I can do this by specify the area

as all cells where
xlCellTypeVisible = False

/Regards


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How select/define cells with FIND method (maybe together with SpecialCells)

Dim rng as Range
On error resume next
set rng = Activesheet.UsedRange.SpecialCells(xlVisible)
On Error goto 0

msgbox rng.Address

--
Regards,
Tom Ogilvy

"Marie J-son" wrote in message
...
I have seen a snippet somewhere to fast and easy select cells and cell

areas
by using Find method. Maybe it was in combination with Specialcells. Are
there any of you having a snippet of this on the shelf? Or in your head?

I need to define a PrintArea for all the pages containing cells.visible =
True and think maybe I can do this by specify the area as all cells where
xlCellTypeVisible = False

/Regards




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
find and Select cells Richard Excel Discussion (Misc queries) 1 June 23rd 06 12:00 PM
SpecialCells Method selects valid records ms Excel Programming 3 May 1st 04 02:46 AM
specialcells method errors when criteria not found ms Excel Programming 8 April 22nd 04 09:53 PM
.SpecialCells(xlLastCell).Select jim c. Excel Programming 3 October 3rd 03 04:02 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:42 AM.

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"