+ Reply to Thread
Results 1 to 4 of 4

Run time error in code that extracts data from several sheets into master sheet

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Run time error in code that extracts data from several sheets into master sheet

    Hi guys,

    I need help with modifying this macro.

    Everytime I add a new sheet with starting name @.... I get a runtime error
    unable to get match property of Worksheet function class.

    I tried debugging, but I always fix one thing, and mess up something else.

    I need to be able to add a lot more sheets with beginning name @...(these are projects so there are going to be a lot of them
    and will increase in the future)
    If I make changes to existing project(sheets with @ symbol) it should automatically effect the master_database accordingly.
    Also my unit number may be alphanumeric(like what we have now) or only NUMERIC so it should read both. Right now
    it does not read numeric.

    Lastly if there is something I need to modify each time I make the above changes please point them out so I can do so. I have
    recognized certain modifications, but not all.

    Thanks a lot.
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Run time error in code that extracts data from several sheets into master sheet

    Hi Hello23

    I can't duplicate this error...I'm able to manually add worksheets at will with the @ sign in the worksheet name. How are you adding the worksheets?
    Everytime I add a new sheet with starting name @.... I get a runtime error
    I suspect this error is raised later in the code.

    This code (on my platform) eliminates the error and appears to resolve this issue
    my unit number may be alphanumeric(like what we have now) or only NUMERIC so it should read both
    Please Login or Register  to view this content.
    I've not addressed this issue
    If I make changes to existing project(sheets with @ symbol) it should automatically effect the master_database accordingly
    See if the attached code works for you. If it does we'll deal with your remaining issue (I'll need more information regarding this remaining issue).
    Last edited by jaslake; 10-14-2012 at 04:32 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,589

    Re: Run time error in code that extracts data from several sheets into master sheet

    Different method.
    Replace the code with the folloiwng
    Please Login or Register  to view this content.
    Last edited by jindon; 10-14-2012 at 05:03 PM. Reason: Add Sort function

  4. #4
    Registered User
    Join Date
    07-19-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Run time error in code that extracts data from several sheets into master sheet

    Thanks a lot guys. Your awesome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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