Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need a macro that will loop until the last empty cell in column B
This what I need: If the cells in column "B" contains the word "Total", then copy the cells in Column "D" to column "E" This is what I have so far but it is not working. Please help Sub Copy_subtotal() Dim i As Integer i = 4 Do Until IsEmpty(Cells(i, 2)) If Cells(i, 2).Formula = "=RIGHT(RC,5))" = "Total" Then Cells(i, 4).Copy Cells(i, 6).Paste End If i = i + 1 Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Returning a string of values in an IF statement | Excel Discussion (Misc queries) | |||
Can I create an IF statement that looks for part of a string of te | Excel Worksheet Functions | |||
LOOKUP a text string created from IF statement | Excel Discussion (Misc queries) | |||
Splitting a text string into string and number | Excel Discussion (Misc queries) | |||
want to remove all text characters equal to one character in length from text string | Excel Worksheet Functions |