+ Reply to Thread
Results 1 to 6 of 6

Debug error

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Gothenburg
    MS-Off Ver
    Excel 2003
    Posts
    12

    Debug error

    Hi!

    I have a worksheet with a list of codes that I need to decode
    I use the following code today in my worksheet:
    Please Login or Register  to view this content.
    Then I use this code in cell B3 to decode the value in B2:
    Please Login or Register  to view this content.
    But since I suck when it comes to programming I tried the following:
    Please Login or Register  to view this content.
    ...but got a debug error.

    Can someone see what I'm trying to do?
    I only want B2 to display something if I click in the range C20:C51

    What am I doing wrong?
    Last edited by stuntmannen; 06-07-2010 at 10:45 AM. Reason: Solved!

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Debug error

    Please use code tags around your code, or we can't answer you. (it's a fairly simple fix BTW).
    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Debug error

    Try this - it should get you started in the right direction.

    In future, please post your code between tags, as in the forum rules.


    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    03-18-2009
    Location
    Gothenburg
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Debug error

    Sorry for the code mishap. Apparently it's not only coding I suck at.

    Thanks alot it worked perfectly. But the only small thing now is that if I click
    outside the range, the old information from when I clicked within range A2 is still
    there. I want A2 to be blank unless I click in the range.

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Debug error

    You need to clear it explicitly:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-18-2009
    Location
    Gothenburg
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Debug error

    That worked perfectly!

    Thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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