Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default Run Time 1004 Error: Application or Object Difine Error

Option Explicit

Private Sub REmove_Net_Pricing_Info_Click()

' SelectButton Macro
' Macro recorded 2/20/2006 by JFS
' Delete TP Contract References to Pricing (Customer Copy),
' so it can be added to Trailer Contract

' Dim ws As Worksheet
' Application.ScreenUpdating = False
' For Each ws In ActiveWorkbook.Worksheets
' If ws.ProtectContents = True Then
' ws.Unprotect ("Fern")
' End If
'
' Next
' ActiveWorkbook.Unprotect (["Ferd"])
'
Sheets("Options").Range("OptionsPgPricing").ClearC ontents
Sheets("Pricing").Range("PricePgPricing").ClearCon tents

Sheets("Contract").Activate
Range("B1").Select

' For Each ws In ActiveWorkbook.Worksheets
' If ws.ProtectContents = False Then
' ws.Protect ("Fern")
' End If
'
' Next
' ActiveWorkbook.Protect (["Ferd"])
'
' Application.ScreenUpdating = True
'
End Sub

Private Sub Replace_Deleted_Click()

' SelectButton Macro
' Macro created 10/02/06 by JFS
' Replace Cells Deleted by "REmove_Net_Pricing_Info_Click Macro
'
' Dim ws As Worksheet
' Application.ScreenUpdating = False
' For Each ws In ActiveWorkbook.Worksheets
' If ws.ProtectContents = True Then
' ws.Unprotect ("Fern")
' End If

' Next
' ActiveWorkbook.Unprotect (["Ferd"])

' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxx

' Replace Cells in Pricing Sheet

' 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

' For Each ws In ActiveWorkbook.Worksheets
' If ws.ProtectContents = False Then
' ws.Protect ("Fern")
' End If
'
' Next
' ActiveWorkbook.Protect (["Ferd"])
'
' Application.ScreenUpdating = True

End Sub


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Time Error 1004 - Application-defined or object-defined error brent Excel Programming 2 October 3rd 05 05:23 PM
Run-time Error 1004: Application-defined or Object-defined Error Adrian Excel Programming 6 August 23rd 05 06:28 AM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Macro Run-time Error 1004 Application Defined or Object Defined Error Anddmx Excel Programming 6 June 9th 04 03:40 PM


All times are GMT +1. The time now is 06:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"