+ Reply to Thread
Results 1 to 4 of 4

Multiconditional if statement problem

  1. #1
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Multiconditional if statement problem

    Hi

    What im trying to achieve:

    I have a multiple checkboxes linked to different cells and need to do somethin dependent on the linked cells value (True, False or vbNullstring)

    Please Login or Register  to view this content.
    *Edit: The part that isn't working is the If statement

    It work ok when i only have this code

    Please Login or Register  to view this content.
    But then i loose the append functiomality when there is allready data in curCell.Offset(-1,-1)

    Hope for some good help

    Steffen Thomsen
    Last edited by Steffen Thomsen; 05-17-2011 at 08:26 AM.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Multiconditional if statement problem

    Hi,

    Anyone got any help on this, or am i unclear in any way?

    Steffen Thomsen.

  3. #3
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Multiconditional if statement problem

    im guessing that the problem is in this line
    Please Login or Register  to view this content.
    may be the value in the cell is a number and you are comparing it to a string..

    if that's not the case please tell me what you are trying to achieve or upload a workbook and i will be glad to help you out

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Multiconditional if statement problem

    Hi,

    Thanks for the reply.

    It is actually a string that is compared, ill try to describe it a bit better.

    I have a calendar, each sheet is a month, at each date there is a checkbox, so the user can choose wich dates to insert appointments or hourregistration.

    When a checkbox is chosen and the values to be insertes are choosed from the comboboxes, the code has to check if the date thats going to be inserted on has a value in it or not, if theres is something in the cell it has to append the values choosen, if it is blank it has to insert the values choosen.

    I can get it to work when it's blank but not when it has to append.

    It will take some tim for me to draft up a dummy, but if it's the only way, i will do it.

    Steffen Thomsen

+ 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