+ Reply to Thread
Results 1 to 3 of 3

Unexpected error message

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Unexpected error message

    I have an auto_open procedure which clears a worksheet then pulls down data from text files, then combines two of the text files. It has worked perfectly through the development.
    This is the code I use
    Please Login or Register  to view this content.
    The two files combined are "Rectangles" and "CutterList"
    The problem is that I get an "Application defined or Object defined Error" on Sheets("Combined").Range("C2:R50000").Clear

    I can clear the sheet manualy. I ran a little macro but this gave the same error
    The sheet exists so what is gong on? What do I need to look for?
    John

  2. #2
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Unexpected error message

    I now think that my problem may be caused because the combine sub includes the line
    Please Login or Register  to view this content.
    and Rectangle_Table is a QueryTable. I would therefore like to change the code so that I only paste values. Can anyone help me with this please I have not managed to find how.
    John

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Unexpected error message

    Something like this:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

+ 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. I get the message:solver an unexpected error occured
    By nchinas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2014, 05:44 PM
  2. Replies: 0
    Last Post: 06-12-2006, 09:45 AM
  3. New to VBA, getting unexpected error 1004
    By Teodomiro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2006, 11:50 AM
  4. [SOLVED] Why did I get an unexpected critical error?
    By Lynkwright in forum Excel General
    Replies: 1
    Last Post: 01-20-2006, 12:50 PM
  5. [SOLVED] Unexpected error message on closing an Excel file
    By KG in forum Excel General
    Replies: 1
    Last Post: 03-21-2005, 11:06 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