+ Reply to Thread
Results 1 to 3 of 3

Need help on leaving blank cell on error and continuing macro

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    11

    Need help on leaving blank cell on error and continuing macro

    Hey all,

    I keep getting an error Run-time error '5' at this step
    Please Login or Register  to view this content.
    I know the reason why I'm getting an error.
    However, I want to know if there is any way to make it such that if there is an error, resume next or leave an empty space?

    I tried to add in the if error resume next, but it doesn't work.


    Below is my original code
    Please Login or Register  to view this content.
    Last edited by WinningKing; 03-05-2014 at 02:24 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,447

    Re: Need help with error

    Hi,

    Look at this site for Error Handling.
    http://www.cpearson.com/excel/ErrorHandling.htm
    On Error Resume Next
    should go above the possible problem. Is that what you did?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Need help with error

    I inserted the On Error Resume Next in the 2nd last line, but I still get an error when the keywords are missing from the txt file.

+ 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. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  2. Receiving following error “Complie error : syntax error” Help
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2012, 10:19 AM
  3. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  4. Error 75 File/Path access error, sometimes Error 1004
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-16-2011, 02:35 PM
  5. Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02:10 PM

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