+ Reply to Thread
Results 1 to 2 of 2

Run time error 1004 - display message box instead

  1. #1
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Run time error 1004 - display message box instead

    Morning,

    I'm an amatuer in VBA, however I'm building a tool to help a colleague. All works fine unless the range which is copuied to a new sheet doesn't contain the original shapes then I get a runtime error as there is nothing to delete.

    As it's at the end - if there is nothing to delete I'd rather a message box appeared stating Complete - no shape to remove rather than runtime screen.

    Can anybody help?

    the error will appear toward end of the macro StepII

    Please Login or Register  to view this content.
    Exchange ToolV1.xlsm

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Run time error 1004 - display message box instead

    Just replace your shown code with the below one

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. [SOLVED] Alternative message box instead of run time error 1004 box no cells were found
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 04:26 AM
  2. Need to Create Error Message Box during Runtime error 1004
    By ExcelHelp2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2013, 06:24 AM
  3. [SOLVED] Run Time Error Message 1004 : No Cells were found
    By brajpalshishodia in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-15-2012, 12:52 PM
  4. Error Message: Run-time error '1004':
    By joemo63 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2012, 04:14 AM
  5. display an error message if the textbox doesn't store time
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-16-2009, 04:42 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