I have a macro that is current set to look for a specific worksheet, Sheets("Prog Off Core"). I was just told that there could be a few variations of Prog Off.
Prog Off Core Print
Prog Off Resource Print
Prog Off Core Digital
Prog Off Resource Digital
Thank you.
Sub SAP_40_Character_Copy()
Application.ScreenUpdating = False
Dim Drng As Long
Dim Counter As Integer
Drng = Sheets("Prog Off Core").Cells(Rows.Count, "BC").End(xlUp).Row
MsgBox "SAP Description about to populate - Rows 3-" & Drng
'Copy Abbreviation - first row
Sheets("Abbreviations").Select
Range("A3:U3").Select
Application.CutCopyMode = False
Selection.Copy
'Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Paste Abbreviation formulas
'Sheets("Abbreviations").Select
Range("A3:U" & Drng).Select
ActiveSheet.Paste
'Copy SAP Desc
'Sheets("Abbreviations").Select
Range("A3:A" & Drng).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Prog Off Core").Select
Range("C3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Counter = "3"
'Do While Loop ()
Do While Counter <= Drng
'Language Update
Sheets("Prog Off Core").Select
Range("J" & Counter).Select
ActiveCell.FormulaR1C1 = _
"=IF(VLOOKUP('Prog Off Core'!RC[11],Options_Fields!C10:C12,3,0)<>"""",VLOOKUP('Prog Off Core'!RC[11],Options_Fields!C10:C12,3,0), IF(OR(Abbreviations!RC[6]="""", Abbreviations!RC[6]=""ENG""),""English"",VLOOKUP(Abbreviations!RC[6],Options_Fields!R2C64:R7C65,2,0)))"
Counter = Counter + "1"
Loop
End Sub
Bookmarks