Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select filled cells/rows in a spreadsheet

Hi,
I have a worksheet with data looking like that:
# Name Telephone
1 Joe 506
2 Jack 239
3 Bob 897
4
5
....
3000

The number of rows is limited to 3,000, but the rows filled could be
anywhere between 1 and 3,000. I am looking at a VBA macro that could
autmatically select the rows filled, column B being the test.

Thanks for your help !!

Tomfizz

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select filled cells/rows in a spreadsheet

Dave - Thanks a lot !!!!
That's about it, except that I don't want to select the entire row, but
only up to another column (say column J).
the idea is to create a print area corresponding to a table, with a
various number of rows ...
Thanks for the help!
Tomfizz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Select filled cells/rows in a spreadsheet

One way:

myrng.entirerow.select
becomes

with activesheet
intersect(myrng.entirerow,.range("a:J")).select
end with

Change A:J to whatever columns you want.

Tomfizz wrote:

Dave - Thanks a lot !!!!
That's about it, except that I don't want to select the entire row, but
only up to another column (say column J).
the idea is to create a print area corresponding to a table, with a
various number of rows ...
Thanks for the help!
Tomfizz


--

Dave Peterson
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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
Filled cells dont appear as filled SMILLS Excel Discussion (Misc queries) 6 October 18th 07 05:28 PM
Select filled region only in non-adjacent columns hmm Excel Discussion (Misc queries) 1 August 19th 07 03:38 PM
How do you select two cells in different rows and columns with ou. M.G Excel Discussion (Misc queries) 3 December 17th 04 11:39 PM
Excel 2000 VBA: select filled cells for printing aaabart Excel Programming 1 September 4th 03 02:08 PM


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