B
BEEJAY
Error shows up in second code.
I've tried all kinds of ways of stating but end up with this error every time.
Option Explicit
Private Sub REmove_Net_Pricing_Info_Click()
' SelectButton Macro
Sheets("Options").Range("OptionsPgPricing").ClearContents
Sheets("Pricing").Range("PricePgPricing").ClearContents
Sheets("Contract").Activate
Range("B1").Select
End Sub
Private Sub Replace_Deleted_Click()
' >>>> Run Time Error 1004: Application Defined or Object Defined Error
Sheets("Pricing").Range("C127").Select
ActiveCell.FormulaR1C1 = "CUSTOMER SPECIAL CONTRACT PRICE"
Sheets("Pricing").Range("C128").Select
ActiveCell.FormulaR1C1 = "=Round(G128,0)"
' Replace Link on Options Sheet
Sheets("Options").Range("H6").Select
ActiveCell.FormulaR1C1 = "=Pricing!$C$128"
' Place curson on Contract, Cell B1
Sheets("Contract").Range("B1").Select
End Sub
I've tried all kinds of ways of stating but end up with this error every time.
Option Explicit
Private Sub REmove_Net_Pricing_Info_Click()
' SelectButton Macro
Sheets("Options").Range("OptionsPgPricing").ClearContents
Sheets("Pricing").Range("PricePgPricing").ClearContents
Sheets("Contract").Activate
Range("B1").Select
End Sub
Private Sub Replace_Deleted_Click()
' >>>> Run Time Error 1004: Application Defined or Object Defined Error
Sheets("Pricing").Range("C127").Select
ActiveCell.FormulaR1C1 = "CUSTOMER SPECIAL CONTRACT PRICE"
Sheets("Pricing").Range("C128").Select
ActiveCell.FormulaR1C1 = "=Round(G128,0)"
' Replace Link on Options Sheet
Sheets("Options").Range("H6").Select
ActiveCell.FormulaR1C1 = "=Pricing!$C$128"
' Place curson on Contract, Cell B1
Sheets("Contract").Range("B1").Select
End Sub