I have a macro that I am trying to get something done. I want it to search a range of cells from E2:P13. If it contains a "1" then copy cell B27 to that cell and repeat for all cells in that range. If it contains a "2" then copy cell C27 to that cell.
I had a VB class in college and wrote this, but I would have to copy and paste it for each cell and if I add a row it would not be easy to change.
Can anyone help with something more "dynamic"?If Range("E2").Value = "1" Then Range("B27").Select Selection.Copy Range("E2").Select ActiveSheet.Paste Application.CutCopyMode = False ElseIf Range("E2").Value = "2" Then Range("C27").Select Selection.Copy Range("E2").Select ActiveSheet.Paste Application.CutCopyMode = False End If
Thanks!
Bookmarks