![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: May 2002
Posts: 91
|
Hi
I have a few columns in my excel. they grow every day. I have to find a column which is empty. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Try this thread:
http://www.mrexcel.com/board/viewtop...c=7715&forum=2 or this http://www.mrexcel.com/board/viewtop...c=7309&forum=2 or this http://www.mrexcel.com/board/viewtop...c=5493&forum=2 [ This Message was edited by: Brian from Maui on 2002-05-16 15:51 ] [ This Message was edited by: Brian from Maui on 2002-05-16 15:56 ] |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
Hi jp:
I find the "end" function can be quite useful in writing macros. It will find the limits of a specified range. This range may be an entire sheet or a "grouping" of numbers on a sheet. I wrote this little procedure for you to investigate this with. Good Luck ! Code:
Public Sub FindRangeLimits()
RefPt = InputBox("Enter Ref Cell ex: A1", "Find Limits")
Up = Range(RefPt).End(xlUp).Row
Down = Range(RefPt).End(xlDown).Row
Rt = Range(RefPt).End(xlToRight).Column
Lft = Range(RefPt).End(xlToLeft).Column
NL = Chr(13) & Chr(10)
TB = Chr(9)
prmt = MsgBox("Limit Up:" & TB & TB & Up & NL & _
"Limit Down :" & TB & Down & NL _
& "Limit Left :" & TB & Lft & NL _
& "Limit Right :" & TB & Rt, , "Find Limits ")
End Sub
Quote:
[ This Message was edited by: Nimrod on 2002-05-16 17:05 ] [ This Message was edited by: Nimrod on 2002-05-16 17:05 ] [ This Message was edited by: Nimrod on 2002-05-16 17:06 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|