Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
help with repeating data from cell above
I have two colums, names in A and access level in B. I need to search through
A and if there is a empty cell then I need to copy the data from the cell above. I will need to do this for however many rows there is data in Column B. Thanks Bob |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
help with repeating data from cell above
Debra Dalgleish shares a few techniques here (manual and macro):
http://contextures.com/xlDataEntry02.html and a video http://www.contextures.com/xlVideos01.html#FillBlanks Bobbo wrote: I have two colums, names in A and access level in B. I need to search through A and if there is a empty cell then I need to copy the data from the cell above. I will need to do this for however many rows there is data in Column B. Thanks Bob -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
help with repeating data from cell above
I assume your Col.A range has a header, if not then adjust the code to fit
your application. Hope this helps! If so, let me know, click "YES" below. Sub FindEmptyCells() Dim rng As Range Dim rngMyRange As Range Dim lngLastRow As Long ' find last row in Col. B lngLastRow = ActiveSheet.Cells(Rows.Count, "B").End(xlUp).Row Set rngMyRange = ActiveSheet.Range("A2:A" & lngLastRow) For Each rng In rngMyRange If IsEmpty(rng) Then rng.Value = rng.Offset(-1, 0).Value End If Next rng End Sub -- Cheers, Ryan "Bobbo" wrote: I have two colums, names in A and access level in B. I need to search through A and if there is a empty cell then I need to copy the data from the cell above. I will need to do this for however many rows there is data in Column B. Thanks Bob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sum without Repeating Data in Arrays | Excel Worksheet Functions | |||
data in cell repeating | Excel Discussion (Misc queries) | |||
How to search a cell for last instance of repeating character anddelete to end of data | Excel Programming | |||
Repeating Data | Excel Discussion (Misc queries) | |||
Repeating data | Excel Programming |