Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to find last datafield

Hi, how it's possible to find the last datafield in a range where you not
known the amount of data.
How you can select the data in an xls.

Thanks

Patrick


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Macro to find last datafield

Patrick, this will select the last thing in Column A, is that what you need?
Range("A65536").End(xlUp).Select

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"Patrick" wrote in message
. be...
Hi, how it's possible to find the last datafield in a range where you not
known the amount of data.
How you can select the data in an xls.

Thanks

Patrick




  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Macro to find last datafield

If the data in the range is always in a single block (that
is, no blank rows or columns), then

rng.Cells(1,1).CurrentRegion

will give you the part of the range which actually
contains data.

Regards, Andy Keen

-----Original Message-----
Hi, how it's possible to find the last datafield in a

range where you not
known the amount of data.
How you can select the data in an xls.

Thanks

Patrick


.

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 max value in macro Steve Excel Discussion (Misc queries) 2 January 6th 09 10:01 PM
Get Macro warning, but can't find Macro Stilla Excel Worksheet Functions 1 January 20th 07 01:27 AM
Getpivotdata - able to reference to another cell all parameters but not the datafield Roger The Rabbit Excel Discussion (Misc queries) 6 September 3rd 06 03:10 PM
Show and Hide in Datafield Fullam Excel Discussion (Misc queries) 0 April 17th 06 12:26 PM
Can I pull field as datafield or as a output from a pivot table re Vikram Dhemare Excel Discussion (Misc queries) 8 April 12th 06 04:57 AM


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