1004 run-time error

  1. S

    runtime error '1004': method 'range' of object '_global' failed

    Hi there, thanks for looking. I have a simple bit of code that I would like to loop through each column and then graph this. I have my dates in column A and then B, C, D..... etc are full of numbers. I would like them individually graphed into new sheets. I have written this code but for some...
  2. F

    Run-Time error 1004

    Hi, I am new to VBA and am experiencing following problem. I have created excel spreadsheet and need to record date record created, who created the record and who modifies the record as per below code Private Sub Worksheet_Change(ByVal Target As Range) Sheets("Additional Charges").Select...
  3. S

    run-time error '1004: unable to get the pivottables property of the worksheet class

    Hello, I know you're probably tired of all the 1004 questions, but i'm just puzzled! The goal of the code is simple: fill all date (pivottables, pivot charts, normal tables, etc), to only show "J1" or "Samsung J1". The odd thing is, i can run this code once, perfectly, and than not anymore (i...
  4. R

    Copy to PDF stopped working, Don't know why... Any assistance appreciated

    I have been using the following macro to capture 7 pages of a schedule to pdf. It has worked without issue for quite a while, but now returns an error. The error occurs at this point: (PDFranges.ExportAsFixedFormat Type:=xlTypePDF, Filename:=saveFileName, _...
  5. T

    VBA: Run-time Error 1004: PasteSpecial

    Hello wonderful Excel gurus, I have a bit of VBA code I could use help with. It's fairly straight-forward. Based on two cells, tt looks up a value in another workbook, copies it, closes that workbook, and pastes the value where I want it. However, I'm getting a 1004 error. Here's the code...
  6. K

    EntireRow Delete & Run-Time Error 1004 Issue

    I have the following code that i resulting in an error due to it is too complex and not a contiguous set of data. I beleive it is due to there being too many rows for Excel to properly execute. I have scoured the forum to make something work in my favor, but have come up with incorrect...
  7. J

    Application/object defined error 1004 - Autofilter

    Hi I'm trying to add an autofilter to a row where the first 3 columns of data are refreshed from an external data source and the next 4 columns of data are formulas (Range A4:G#varies). I can manually add an autofilter to this row outside of VBA, but when I try to use code the subject error...
  8. D

    Run time error 1004 - Paste special method of range class failed

    Hi all, I have quite a bizarre error occurring with the code below - when the button is pressed to run this code I get the Run time error 1004 - Paste special method of range class failed. However if I step through the code no error occurs. The error is occurring at the "paste special" stage...
  9. J

    VBA runtime 1004 error:

    Hi all: I am getting: when I attempt to run through a module that runs another module within the xlsm. I can run personal.xlsb modules successfully. I've tried about a dozen fixes to no avail. is the specific code in question though I use Application.Run many times throughout. Stumped on...
  10. D

    VBA MATCH function issue

    Hi, I'm fairly new to VBA so please forgive my lack of knowledge! I'm trying to use the Match function but get a run-time error 1004. My code is as follows: Sub CAAnalysis() Worksheets(1).Activate Start1 = Application.WorksheetFunction.Match(0.05, "$A:$A", 1) Debug.Print Start1 End...
  11. P

    What is the perfect solution for the run-time error '1004' No Cells were found?

    <!-- BEGIN TEMPLATE: ad_showthread_firstpost_start --><!-- END TEMPLATE: ad_showthread_firstpost_start -->Here I am getting it: For Each cell In Range(temp(0).Cells(1).Offset(0, 1), Cells.SpecialCells(xlCellTypeLastCell)).SpecialCells(xlCellTypeConstants, 1)
  12. K

    Run-time error 1004, Copy paste chart from excel to powerpoint

    Hi all, I wrote a sub that gets called when I need to copy and paste a chart from Excel 2010 to Powerpoint 2010. The sub gets inputs of (SlideNum, XLSSheetName, ChartName, XPos, YPos) to determine which gets copied and which slide it gets copied to. However, I keep getting run time error 1004...
  13. W

    URGENT help needed, Run time error 1004

    Hello all, I've got to do a presentation on an excel tool I'm working on, tomorrow. I'm just having this issue with this one macro. All the macro does is check if various cells are empty, if any of them are, it makes a "Hide" tag, if they are all filled it makes a "Next" button appear. The way...
  14. S

    Problem with 1004 error on refresh data connection

    Hi, I'm getting a runtime 1004 error: application or object defined error on the code below Seems to be in relation to "ActiveWorkbook.Connections("Database2").Refresh," Any advice appreciated. Sub Send2Access2() Dim cnn As New ADODB.Connection Dim rst As New ADODB.Recordset Dim...
  15. P

    Runtime Error 1004 - populating chart with form data

    Hi Everyone, I wrote some script to populate a chart from a user form. It worked in Excel 2003, but we have just recently upgraded to 2010 and I started getting this run-time error. Would appreciate someone looking at the script and providing some assistance. The error occurs after the...
  16. F

    driver or add-in missing

    Hi, I just installed WIN7 and OFFICE 2010 and when I run macro I got error like: Run-time error '1004': [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. do you know which driver in office is missing ???
  17. X

    Error 1004 - paste method failed

    Below macro works on some PC and on others PC shows the error message (it fails on Activesheet.Paste but when you press F8 it works ok, just won't execute in one go): Run-time error 1004: Paste method of Worksheet class failed offset_Increment = Range("r5")...
  18. T

    Run time error 1004 - If myr <> myr.Offset(1, 0) Then x = x + 1

    Trying to copy rows of product information to new worksheets that are named after the products. Column BE2 has the product names without duplicates. Column U has the products randomly dispersed because items were sold at different times during the year. Hope this makes sense. Option Explicit...
  19. mkvarious

    Error handling query

    hello, so there's a macro that our client started to develop for us (I realize that sounds a little bit crazy, but forget it) and now I am developing it as they do not want to do it anymore. what macro does is more or less sorting rows in descending order of manufacturing recommendation and...

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