Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Could somebody look at the following and advice if there is a better way to do:
Dim Emptydat() Range("a65536").End(xlUp).Select ActiveCell.Offset(1, 1).Select n = Range("names").Count Epicdat = Range("names") Range(ActiveCell, ActiveCell.Offset(0, n)).Select Blankdat = Selection For B = 1 To n If Blankdat(1, B) = "" Then d = d + 1 ReDim Preserve Emptydat(1 To d) Emptydat(d) = Epicdat(1, B) End If Next B A B C D F 1 Title1 Title2 Title3 Title4 2 Date1 1 3 5 6 3 Date2 1 3 5 6 4 Date3 1 3 5 6 5 Date4 1 5 6 Bassically at the top of mysheet I have row 1 named 'names', about 200 col wide, but this changes occasionally. In col 'A' I have dates going back 6 yrs whence Im using ' Range("a65536").End(xlUp).Select' because this changes every day. I then enter values beside each date, under each title in the 'names' range. what I want to do with this program is from the last date in col a, is check along the Row to see if there are any missing values, if so enter the title of that col into an array, which Iater place in a worksheet. So in above eg, C5 is blank, so I would enter Title2 into array.This program works perfect, as Im using arrays I thought there may be a better way to use them. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Arrays | Excel Worksheet Functions | |||
Regarding Arrays | Excel Discussion (Misc queries) | |||
Regarding the Arrays | Excel Discussion (Misc queries) | |||
two arrays | New Users to Excel | |||
arrays | Excel Programming |