Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DZ DZ is offline
external usenet poster
 
Posts: 29
Default Select the current region excluding the top row

Hi

I want to select the current region excluding the top row
The following did not work

Selection.CurrentRegion.Resize(-1, 0).Select

Can someone help me ?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Select the current region excluding the top row

This assumes you have only 1 Row as your header if that changes just change
the 1 to however many rows you need as your header.

Sub SelectRange()

Dim myRange As Range

Set myRange = ActiveCell.CurrentRegion

myRange.Offset(1, 0).Resize(myRange.Rows.Count - 1,
myRange.Columns.Count).Select

End Sub


Hope this helps! If so, please give us credit.

--
Cheers,
Ryan


"DZ" wrote:

Hi

I want to select the current region excluding the top row
The following did not work

Selection.CurrentRegion.Resize(-1, 0).Select

Can someone help me ?

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
Current region emulation daverau Excel Worksheet Functions 5 October 16th 09 04:31 AM
looping through current region buffyslay Excel Programming 2 February 1st 06 05:58 PM
Select current region and print Tempy Excel Programming 2 April 20th 05 05:47 AM
Select current region less one column Soniya[_2_] Excel Programming 1 January 12th 04 02:05 PM
Copy Current Region Rohit Thomas[_2_] Excel Programming 1 December 4th 03 01:55 AM


All times are GMT +1. The time now is 09:36 PM.

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"