+ Reply to Thread
Results 1 to 7 of 7

macro error issue

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    nyc
    MS-Off Ver
    Excel 2010
    Posts
    38

    macro error issue

    i keep getting a 1004 error with the below code- object defined error

    Please Login or Register  to view this content.
    Moderator Note:

    Pls use code tags around your code next time as per forum rules.



    availability is the name of my table
    Last edited by Fotis1991; 10-10-2013 at 08:50 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: macro error issue

    Range("data!Extract") doesn't look right to me, I think you mean Sheets("data").Range("Extract")?

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    nyc
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: macro error issue

    THE FORMULA I HAD WORKS IN ANOTHER SHEET

    Please Login or Register  to view this content.
    Last edited by arlu1201; 10-10-2013 at 09:35 AM.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: macro error issue

    MAYBE THERE IS AN ERROR IN YOUR DATA THEN. UPLOAD A WORKBOOK.

    I'm guessing the problem is that you don't have a named range on your data sheet called Extract though, looking at what you have posted.

  5. #5
    Registered User
    Join Date
    09-04-2013
    Location
    nyc
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: macro error issue

    excel_upload_table.xlsx

    A subset of the sheet attached

    thanks

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,168

    Re: macro error issue

    Miller,

    You missed the note from the moderator in post 1. I have put code tags for you in post 3 again. Ensure you do not break the rules again.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: macro error issue

    Please Login or Register  to view this content.
    That works on your example file. So I think the problem is with your names (AVAILABILITY#ALL and Extract). Do both of these exist on your data sheet? I can't really help because you didn't included the named ranges or code in your attachment.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Issue in macro getting overflow error
    By expert40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2013, 11:43 AM
  2. Event macro If without End if error issue
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2012, 07:33 PM
  3. running a macro then an error of #REF! issue
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2012, 12:09 AM
  4. Macro Issue - Run time error 1004
    By Matt7102 in forum Excel General
    Replies: 1
    Last Post: 12-21-2005, 08:40 PM
  5. Mac issue with macro recording user login & date (run time error '
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2005, 01:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1