run time error 1004

  1. M

    VBA code error when using File Exit

    Hi In Excel 2010, under a Workbook_BeforeClose event, I have code to deselect any multiple selection of sheets. Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveSheet.Select 'removes multiple selection of sheets End Sub This works fine, when closing an individual spreadsheet...
  2. D

    Run time error 1004

    Hello everyone i have encountered a problem with this run time error 1004 application defined error or object defined error can any one help me out of this. i have highlighted the line where the error occurred with a sad smiley please help me out Private Sub CommandButton1_Click() Dim lrow As...
  3. J

    Merge Cells VBA Run Time Error 1004

    Hello, I'm having a small problem with part of a code - and just dont know why it isn't working when using Private Sub Workbook_Open() whereas it works when using commandbutton()! Private Sub Execute() 'Clear All Previous Data With Sheets("Summary").Range("A3:K310") .Interior.ColorIndex =...
  4. C

    Run time error 1004 with formula

    Hi All I've tried searching, but unable to find what the problem might be. A part of my code is returning a Run-Time error 1004 Application-defined or object-defined error and I can't figure for the life of me why. The formula, when put direct into the cell works fine, but when trying to...
  5. E

    VBA Run-Time Error 1004

    I am having a Run Time Error Code 1004 pop up after making changes in the bolded line of code on the "Stage Times" sheet from: Private Sub Worksheet_Change(ByVal Target As Range) Dim xHour As String Dim xMinute As String Dim xWord As String Dim rngMonitored As Range, rng...
  6. M

    PivotFields Property Run time error

    Hi, I am trying to run a macro to expand/collapse pivot fields whenever the pivot table is updated. Pivot table is filtered using a slicer that is connected to one of the pivot table row fields (not a pagefield). The first time I make a selection in the slicer and pivot table is filtered...
  7. M

    Using Regression from Analysis Toolpak in VBA

    I am trying to use the regression tool from the Analysis Toolpak to run a bunch of regressions. I have everything set up and the code seems to be fine but when I try to run it I get the following error: Run-time error '1004': Cannot run the macro". The macro may not be available in this...
  8. E

    Excel vba error message "Run Time error 1004: Select Method of Worksheet class failed"

    Hi there, I have been successfully executing the same code for quite a while, but when I attempted to run my macro this time I received a "Run Time error 1004: Select Method of Worksheet class failed" error message, and the macro bombs... What the macro is supposed to do is perform the same...
  9. R

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

    Hi guys, When I run my code I get the following error "Run-time error '1004': Application-defined or object-defined error" with this part of the code: ws4.Range("B3:CS74").Copy Destination:=ws5.Range("B3:CS74") Any help would be much appreciated :biggrin: Sub AngliaUpdate() Dim wb1 As...
  10. M

    VBA code to run macro based on cells updated

    I found this code and changed it to what I need. But I know I left it only half way done. I want to run my macro called Request_Form but only if either cell J2 or T61 is changed. Cells J2 and T61 are dropdown menus. When I change those cells the macro runs correctly however, when I enter...
  11. M

    Issues with Copy/Paste Unique Values

    I am having trouble with a pretty basic function. I need to copy everything in Column A (header excluded) and paste the unique values in column A in a different sheet. I chose to try to paste all of the values and then remove all of the duplicates. If there is an easier way to do this, please...
  12. A

    Run time error 1004 select method of worksheet class failed

    I a, a newer VBA user and I am having trouble running a Recorded and 'somewhat cleaned up' script. The following is part of what I have and Bold and Italicized is the problem part that keeps popping up with the Run time error 1004. I have tried an array of different things, but nothing has...
  13. H

    Error when entering formula using VBA

    I have a formula that I'm using which works and gives me the right value. =COUNTIF(bommech[PO1 No],"")+COUNTIF(bomelec[Procurement Status],G4) However when I try and enter the exact same formula through VBA using, I get "Run-time error 1004: Application defined or object defined error". I...
  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. J

    VBA Issue with run time error 1004

    Daily I download a file that needs to be modified for review. When I inherited this, there was already a macro created that does this. The problem is because there are thousands of records, it takes a long time to go through it's loop. I've played with making a change in the macro that would...
  16. L

    Run-time error '1004'

    Hi, I am running a macro for a results based spreadsheet and the data it imports sometimes appears on different rows. This then trips up my macro and I get the error message 'Run time error 1004: No data was selected to parse. The problem occurs when it references "Row 70" in all the lines of...
  17. S

    Run time error 1004

    I am trying to open two different workbooks for transferring data. The name of workbooks are in two cells of the current workbook. First workbook opens correctly but there is error in opening other workbook. It says "run time error 1004. File can't be found." However, if i use path of workbook...
  18. L

    why does the box for update values come up when it's not in the code to come up?

    Okay so I have three things I need help with. 1.) I have excel 2007 and when I recorded the macro yesterday it worked just fine, but today it's coming up with the box to update values. The macro is set to open up the vendor assignment sheet and do a vlookup against the clerk and then return the...
  19. C

    Run time error when using ComboBox to populate textboxes

    Hi All, I having a problem with a run time error code that occurs when I attempt to copy and paste data from one worksheet to another sheet. basically I have 3 sheets 1 sheet (sheet1) is used for data entry, the op enters int various cells and textboxes by pressing a command button which...
  20. S

    Vlookup VBA error if value not found

    hi all, i have two sheets which has thousand lines and i will update it daily so there will increase in line numbers day by day.. instead vlookup formula i planned to use worksheet function vlookup so that it can save time in calculating the worksheet for more than 10 mins. i tried with below...

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