LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Allowing Column Ranges in UDF

I have a User Defined Function which takes a Range as an argument.

It processes the range as follows

For RowNumber = 1 To DateRange.Rows.Count
DateFrom = DateRange.Cells(RowNumber, 1).Value
DateTo = DateRange.Cells(RowNumber, 2).Value
......(Further Processing)
Next RowNumber

This works fine for a range such as "C23:D50".

How can I cater for the user entering a column range such as "C:D"? In this
case I would want to loop down column C while it had valid data.

Nirmal


 
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
Allowing users to edit selected ranges only Lee D Excel Discussion (Misc queries) 1 January 5th 07 08:57 PM
Sum Multiple Ranges in the Same Column Harlan Excel Discussion (Misc queries) 1 December 20th 06 04:13 PM
Data ranges within a column JT Excel Worksheet Functions 4 January 9th 06 09:52 PM
How do I add different ranges in a column together? Jackie New Users to Excel 1 December 2nd 05 03:52 PM
Only Allowing Certain Codes In Column Buttercup Excel Discussion (Misc queries) 2 January 6th 05 09:32 PM


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