+ Reply to Thread
Results 1 to 4 of 4

Error 2023 - triggered by variable - Cant find mistake

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    50

    Error 2023 - triggered by variable - Cant find mistake

    Hello!
    Starting Point: I have a master sheet, where I can activate a new sheet with a checkbox that gets the name of a certain cell. Afterwards I want to switch back to the master sheet and insert some formulas containing the name of the new sheet. The problem is I get a 2023 error for the variables that I marked red in the following code. I know it is a reference error but I dont know how to fix it. I just want the macro to insert the formula instead of checking reference. The code that the variable produces is correct (I tested it) and does what I want it to do, but the macro does not insert it:

    Please Login or Register  to view this content.
    Thanks a lot,
    Taktiker
    Last edited by Taktiker; 10-22-2012 at 09:09 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Error 2023 - triggered by variable - Cant find mistake

    Not sure but try replacing the semi-colons with commas.

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Error 2023 - triggered by variable - Cant find mistake

    I think the problem is that you are trying to do a worksheet calculation in a variable. Try putting these formulas in cells and then the result would be a variable, OR you can turn them into vba if statements and functions.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    08-19-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Error 2023 - triggered by variable - Cant find mistake

    Not sure but try replacing the semi-colons with commas.
    That helped. Thank you! (These are the little things you would never consider important on your own )

+ 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