Unfortunitely I can't use this code, Since the Sheet that i am to enter this code is deleted everytime and regenerated.
Here is a portion of the code:
'paste
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
ActiveSheet.Cells(intTopRow, intLHColumn).Select
ActiveSheet.Paste
Application.CutCopyMode = False
PasteValues = True
''''''''RULE ONLY Applies for BA122
'''''''Need code to go Here When rule is meet
ExitFunction:
'return to starting cell
Sheets(strCurrWorksheet).Activate
ActiveSheet.Cells(intCurrRow, intCurrColumn).Select
Exit Sub
ERRORHANDLER:
HandleErrors Err, "PasteValues"
PasteValues = False
GoTo ExitFunction
End Sub
If the rule is meet I want to run this code: Portion of the code.
Sub AuditUpdaterwithnewcombo()
'
' AuditUpdaterwithnewcombo Macro
'
'
Sheets("Audit").Select
' Dim Lastrow As Long
Lastrow = Range("E11").End(xlDown).Row
Range("AK10").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.FormulaR1C1 = "NEW DISTRCHANNEL"
Range("AL10").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.FormulaR1C1 = "Product Type"
Range("AM10").Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.FormulaR1C1 = "Combo"
'Formual for NeW dist Channel