Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Select all Data on Active Sheet

Hi:

I need to create part of a macro to start at cell A4 on the active sheet and
then select all data on the sheet. The number of columns will remain the
same but the number of rows will constantly change.

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Select all Data on Active Sheet

hi
this will select all data from A4 to last row and over to column h provided
that column a is a solid block of data.
Range(Range("A4"), Range("A4").End(xlDown).Offset(0, 7)).Select

regards
FSt1

"Theresa" wrote:

Hi:

I need to create part of a macro to start at cell A4 on the active sheet and
then select all data on the sheet. The number of columns will remain the
same but the number of rows will constantly change.

Thanks,


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Select all Data on Active Sheet


Range(Range("A4"), ActiveCell.SpecialCells(xlLastCell)).Select


Gord Dibben MS Excel MVP


On Fri, 25 Jul 2008 13:28:16 -0700, Theresa
wrote:

Hi:

I need to create part of a macro to start at cell A4 on the active sheet and
then select all data on the sheet. The number of columns will remain the
same but the number of rows will constantly change.

Thanks,


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Select all Data on Active Sheet

Hi:

That's the problem.....It may or may not be a solid block. There could be
blank cells in the mix.......how do code a CTRL + SHIFT + END function?

"FSt1" wrote:

hi
this will select all data from A4 to last row and over to column h provided
that column a is a solid block of data.
Range(Range("A4"), Range("A4").End(xlDown).Offset(0, 7)).Select

regards
FSt1

"Theresa" wrote:

Hi:

I need to create part of a macro to start at cell A4 on the active sheet and
then select all data on the sheet. The number of columns will remain the
same but the number of rows will constantly change.

Thanks,


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
How to set printer default to select active sheet not whole book Vic Storey Excel Discussion (Misc queries) 0 May 16th 08 06:11 PM
Macro with input box to Select a column on active sheet Marcusdmc Excel Programming 6 September 25th 07 07:53 PM
How to select the active sheet? Eric Excel Worksheet Functions 1 August 7th 07 03:40 PM
select all cells in an active sheet containg links to other (external) workbooks. al007 Excel Programming 6 February 18th 06 02:54 PM
Select all pivot table areas/ranges on the active sheet problem DataFreakFromUtah Excel Programming 3 October 27th 04 04:57 PM


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