+ Reply to Thread
Results 1 to 6 of 6

WHy this debug error

  1. #1
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    WHy this debug error

    Hi I just pasted this vba code and it works for all the cells only cells in one column it gives error and while debug show this value highlighted ".InputMessage = Target.Value"

    Please Login or Register  to view this content.
    Thanks
    mp
    Last edited by arlu1201; 01-14-2014 at 08:43 AM. Reason: to include codes

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,472

    Re: WHy this debug error

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Contributor
    Join Date
    02-03-2009
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: WHy this debug error

    Hi, ok i have edited, now can i get a response
    Thanks
    mp

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: WHy this debug error

    Do you have merged cells?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

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

    Re: WHy this debug error

    Try this....

    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

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: WHy this debug error

    Hi, maximpinto,

    ...and it works for all the cells only cells in one column...
    Run Time Error 13 if you happen to let it run on multiple cells as they all are part of Target - you must break it down to a loop to run on each cell. And the code will work in any cells that are selected by curosr or mouse - I would break the range down.

    Limiting to Column C and adjacent cells:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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] debug error
    By rickmeister in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2013, 09:09 AM
  2. debug error
    By VBisgreat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2012, 02:12 PM
  3. if Then = debug error
    By garretonufer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2009, 04:00 PM
  4. debug error?
    By mitelkm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2008, 01:27 PM
  5. [SOLVED] Error Won't Debug
    By Trip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2006, 03: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