LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default CurrentRegion Selecting

Try something like the following:

Dim DataRng As Range
With Range("A1").CurrentRegion
Set DataRng = Range(.Cells(2, 1), .Cells(.Cells.Count))
End With
DataRng.Select


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"He4Giv" wrote in message
...
Hello.
I have header info in cells A4 (Quantity), B4 (Dwg. No),
C4 (Drawing Description), and D4 (Dated).
we fill in the appropiate info under these headers
starting in A5 and movig to the right.
When I wrote the code to select CurrentRegion and copy and
paste just the data to a log sheet it also grabbed the
Header info. Keep in mind that the data rows will vary, we
may have 2 rows filled in or 6 under the Header.

How do I tell VBA NOT to grab the header info, and to just
grab the data info even though the header may be part of
the CurrentRegion?

Thank you




 
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
currentregion flow23 Excel Discussion (Misc queries) 13 November 23rd 05 05:02 PM
Formula equivalent of CurrentRegion bdr200 Excel Worksheet Functions 1 June 14th 05 11:41 AM
.CurrentRegion in Excel functions Tim Lund Excel Programming 1 December 18th 03 03:47 PM
CurrentRegion Failure. Please help! John T Ingato Excel Programming 2 November 9th 03 11:12 PM
CurrentRegion.copy maybe? Bob Phillips[_5_] Excel Programming 5 September 7th 03 10:20 PM


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