+ Reply to Thread
Results 1 to 10 of 10

Macro stops when encounters #VALUE!

  1. #1
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Macro stops when encounters #VALUE!

    Hi Guys,

    Need some help on a macro here. I have a macro called CREATE when i run it it should automate some columns with values. The problem im having is when the macro encounters column with a value as #VALUE!, it will stop running. Appreciate if someone can help to look into tthis.

    Blank CI Report Macro.xlsm
    Test file.xls


    Kind Regards,
    Mark.
    Last edited by mark888; 02-12-2015 at 03:02 AM.

  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: Macro stops when encounters #VALUE!

    Where do you have #Value error in your workbook?


    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

  3. #3
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Macro stops when encounters #VALUE!

    Quote Originally Posted by :) Sixthsense :) View Post
    Where do you have #Value error in your workbook?
    Hi sixthsense,

    Sorry i just uploaded another file which im using to run the macro in.

    Kind Regards,
    Mark.

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

    Re: Macro stops when encounters #VALUE!

    Still I don't find the #Value error in that new workbook also

  5. #5
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Macro stops when encounters #VALUE!

    Quote Originally Posted by :) Sixthsense :) View Post
    Still I don't find the #Value error in that new workbook also
    Hi Sixthsense,

    I might be wrong here im sorry but whenever i open the test file and run the macro from the macro file, it stops halfway and i'm assuming its because of the value #VALUE# in column H4. I only run the macro called CREATE.

    Kind Regards,
    Mark.

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

    Re: Macro stops when encounters #VALUE!

    Use IsNumeric() to check whether it is number and proceed further

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Macro stops when encounters #VALUE!

    Quote Originally Posted by :) Sixthsense :) View Post
    Use IsNumeric() to check whether it is number and proceed further

    Please Login or Register  to view this content.
    Hi Sixth Sense,

    Sorry im not really sure on how to do this as this macro was done by someone else.
    Is there anyway to help me to put this in the macro file?

    Kind Regards,
    Mark.

  8. #8
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Macro stops when encounters #VALUE!

    Quote Originally Posted by mark888 View Post
    Hi Sixth Sense,

    Sorry im not really sure on how to do this as this macro was done by someone else.
    Is there anyway to help me to put this in the macro file?

    Kind Regards,
    Mark.
    Hi SixthSense,

    Tried to change myself the macro code but it still doesnt work.

    Kind Regards,
    Mark.

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Macro stops when encounters #VALUE!

    Could you use this in Column H?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Macro stops when encounters #VALUE!

    Quote Originally Posted by davesexcel View Post
    Could you use this in Column H?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi Dave,

    I tried SixthSense and edited all the values in the Macro itself and it's working now. Don;t want ot be too confused with formulas.
    Thanks you both of you for your time and expertise.

    Kind Regards,
    Mark.

+ 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. Macro that runs when ran from Macro menu, but stops when using short cut keys...
    By Joven76 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-12-2014, 02:29 PM
  2. [SOLVED] Macro which clears contents below X text until it encounters Y text
    By SF1eagles in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-04-2014, 04:16 PM
  3. [SOLVED] row copy to other sheet in first empty row it encounters based on cell value
    By thealian in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2012, 09:04 AM
  4. excel encounters an error when editing comments
    By AnnieJ in forum Excel General
    Replies: 2
    Last Post: 09-18-2005, 02:05 PM
  5. 'Encounters serious error' on opening with user-defined add-in
    By Bandicoot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-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