LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error 1004 Application Defined or Object Defined Error

Hi

I have a user form that fills in the sheet payments once the add btn
is clicked. This was working fine, then I start getting the above
error. I had done more design changes to the form but since this error
I have put everything back to working design.

Private Sub cmdAddBtn1_Click()
ActiveWorkbook.Sheets("Payments").Activate
*Sheets("HEA Payments").Select - tried inserting this line but no
effect
Range("A1").End(xlDown).Offset(1, 0).Select



If txtPm.Value = "" Then

txtPm.Value = txtAuth.Value

Else: txtPm.Value = txtPm.Value

End If
ActiveCell.Value = txtDate.Value

ActiveCell.Offset(0, 1) = txtScheme.Value

ActiveCell.Offset(0, 2) = txtAuth.Value

ActiveCell.Offset(0, 3) = txtPm.Value

ActiveCell.Offset(0, 4) = txtAmount.Value

ActiveCell.Offset(0, 5) = txtContractor.Value

ActiveCell.Offset(0, 6) = txtInvoice.Value

ActiveCell.Offset(0, 7) = txtTheirref.Value

ActiveCell.Offset(0, 8) = txtComments.Value


End Sub

Thanks garry.

Winxp xl2k
 
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 '50290': Application-defined or object-defined erro Macro button Excel Discussion (Misc queries) 1 March 12th 09 10:59 AM
Macro Run-time Error 1004 Application Defined or Object Defined Error Anddmx Excel Programming 6 June 9th 04 03:40 PM
"Run Time Error 1004 Application Defined or Object Defined Error." BJC Excel Programming 4 October 26th 03 03:09 AM
Runtime Error 1004 -- Application Defined or Object Defined Error John[_51_] Excel Programming 3 September 4th 03 04:28 PM


All times are GMT +1. The time now is 02:32 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"