run time error 1004

  1. C

    Data validation list crashes VBA macro

    I have a VBA macro for Excel 2007 below that loops through a workbook and deletes a picture (shape) in a range at the top of each worksheet. The macro works fine until a cell which contains a seemingly unrelated data validation list on Sheets(1) is changed. The macro then repeatedly trips up...
  2. V

    Common Error 1004 Copy & Paste

    I'm trying to understand the problem with the following code: If x = y Then Sheets("Sheet1").Select Cells(row, 1).Select Selection.EntireRow.Copy Sheets("Sheet3").Select Cells(row, 1).Select ActiveCell.PasteSpecial Sheets("Sheet2").Select Cells(RO, 2).Select...
  3. D

    Method 'SaveAs' of object '_Workbook' failed"

    I am getting Method 'SaveAs' of object '_Workbook' failed" error after my macro successfully creates 34 out of 176 files. I realize this is probably a memory issue. I have been searching all morning to see if I can find some code that will get my system to release resources etc. but have not...
  4. A

    VB: run-time error '1004': Application-defined or object-defined error

    Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> <o:p></o:p> I just started using VB to create macros in Excel recently and I could really use some help.<o:p></o:p> <o:p></o:p> This macro is intended to go through a column of identifiers in one...
  5. E

    Run-time error '1004': Application-defined or object-defined error

    Hi, I am receiving the above error when trying to process this line of code: FinalRow = 20 Cells(4, 18).Resize(FinalRow - 3, 1).Formula = _...
  6. MarkCBB

    Run Time Error 1004 - No Cells found

    Hi there, I am using some code (Got from VoG). that deletes errors, but Now I have found that sometime the data will not contain errors. Is there an Error handler I can use to bypass the error so that the Code will continue to run> here is the code that I am currently using. Range("A2").Select...
  7. E

    Runtime error 1004 from a macro

    Hi I am a beginner at VB code and have been playing around by recording small macros to do tasks and then pasting them together and adapting to complete the task. I have created a macro that using an advanced filter will sort the raw data using 8 different parameters and after each filter...
  8. Felix Atagong

    saveas run time error 1004 after sendmail

    I have an Excel 2000 macro (that runs smoothly on Excel 2000) but that creates a 1004 run time error in Excel 2007 but only if certain conditions are met. Basically it is a text parser that copies certain data to a worksheet "Country" if a certain countrycode is met and sends this worksheet by...
  9. K

    Button doesn't work second time around

    Hi, You guys were so helpful last time, I thought I'd try this again. So I have a form button that runs some macros and when I click it once, all is well and it does what I told it to. If I click it a second time I get the Run Time error 1004 PasteSpecial method of range class failed. So I...
  10. K

    Can't get command button to work

    Hi, totally stuck here. So I record a marcos that does what I want (basically take some data from one worksheet and paste (transposing) onto another spreadsheet) and it works - Here it is: Sheets("Paste Sheet Here").Select Range("B4:B8").Select Selection.Copy...
  11. S

    Creating data validation using VBA

    I need to update a large number of workbooks, and do this using VBA. One of the updates is to add data validation to a given cell. I have recorded a macro, which I am then trying to use, but I keep getting a 'Runtime error 1004 Application-defined or object-defined error'. The recorded macro...
  12. J

    VBA erroe pasting b/w workbooks - run time error 1004

    Hi Guys, I was hoping you could help a run time 1004 error I am getting on the following code: Sub Test() Dim intNumber As Integer Dim intCount As Integer Dim wkbBook As Workbook Dim varFile As Variant Dim strSheet(1) As String strSheet(0) = "Audit Data" strSheet(1)...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top