Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using the code below, which I found here) and this works fine to
delete the row I want, but I want another bit of code that will find a different value and then move cell values over two cells. Here's the Delete Row code (this one works very well) Sub Deleterows() Dim lastrow As Long, a As Long, b As Long Application.ScreenUpdating = False lastrow = Cells(Rows.Count, "a").End(xlUp).Row For a = lastrow To 2 Step -1 If Cells(a, "b") = "Projected" Then Rows(a).EntireRow.Delete End If Next a End Sub Now, I want to find the Word 'Subtotal' in column B, say one is in cell B80. What I would like is to move what is in Cell C80, D80, E80, F80, G80, H80, I80 over 2 cells. Then move (what would be the new cell value from E80 and F80 back to the left one cell. When all is done cell E80 would then be blank..make sense? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare two cells, if equal move a third cell to another cell | Excel Discussion (Misc queries) | |||
Sorting cells: a list behind the cells do not move with the cell | Excel Discussion (Misc queries) | |||
doubleclick to make cells move to another cell | Excel Programming | |||
In Excel, how do you move the contents of 3 cells into 1 cell? | Excel Discussion (Misc queries) | |||
How do I reference the same cell as I move through range of cells. | Excel Worksheet Functions |