Hello, I need some expert help please .... I have below Macro code.. It only looks for CDH.. I want it to find sheetname from range r2:r19 in sheet 'instructions' .. Copy that active cell row T:AE and transpose pastevalue into found sheet (CDH in this case) in range 'D4:D15'
any help would be greatly appreciated.
Code:
Sub PasteBudgetDELETE()
Sheets("instructions").Select
Columns("R2:R19").Select
On Error Resume Next
Selection.Find(What:="CDH", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
'If Err.Number = 91 Then
' MsgBox "ERROR: 'CDH' could not be found."
' End
'End If
Dim intRow As Integer
intRow = ActiveCell.Row
range("T" & intRow & ":AE" & intRow).Copy
Sheets("CDH").Select
range("D4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
End Sub
any help would be greatly appreciated.
Last edited: