LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rik Rik is offline
external usenet poster
 
Posts: 16
Default drop first row in range and return a new range object

Hi I'm trying to create a function that will drop the first row in a given
range object and return a new range object - to eliminate headers from a
range object.

so something like this???

Function dropFirstCell(ByVal r As Range) As Range
Dim r2 As Range
Dim i As Integer

i = 2
Set r2 = r.Range(Cells(i), Cells(r.Rows.Count))

Set dropFirstCell = r2

End Function

can anyone help?
 
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 return a range of values in a drop-down. Joe Excel Worksheet Functions 7 January 9th 10 06:32 PM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
Return contents of cell at Index position in Source Range of Drop TheMath Excel Programming 6 July 21st 06 06:14 PM
Range Question / error 1004: method Range of object Worksheet has failed Paul Excel Programming 3 April 7th 05 02:56 PM
using RANGE object in multiple-area range TerryT Excel Programming 3 December 8th 04 09:13 PM


All times are GMT +1. The time now is 08:08 AM.

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"