Consulting

Results 1 to 7 of 7

Thread: Validation bugbears

  1. #1
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location

    Validation bugbears

    OK, I guess this is gonna be a 'yes' or 'no' thing, so here goes.

    On xl97 (possibly the other versions too) When you create a validation list, the things validated may include rather long expressions.

    Now, you may want to resize the column on which the list appears and wrap the text so that the column doesn't have to take up the whole flippin' page. But have you noticed that the validation drop-down list get's narrower as your column does - and the choices available to the user are not wrapped - which means they can't see the darned things properly. This usually results in a barrage of "I hate your spreadsheet" insults from the poor people who have to use them.

    As much as i try to have wide shoulders( ), I'd still like to know if there any sort of option or code that can wrap the text in the validation drop-down list - or perhaps make the drop-down list wider?

    This would solve one of my long-time pet peeves with Excel, and could even restore peace and harmony in the universe. The benefits could be endless.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Babydum
    On xl97 (possibly the other versions too) When you create a validation list, the things validated may include rather long expressions.
    The obvious way is to temporarily widen the cell. Debra Dalgleish works it here http://www.contextures.com/xlDataVal08.html#Wider

  3. #3
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Thanks again xld,

    That works pretty well, but there are two slightly irritating things - s'pose you can't have everything.
    1) With this code in the sheet, it does the job of widening the cell, but then the arrow dissapears and you have to re-click on the cell to get it back.
    2) Peace and Harmony don't seem to have been restored in the universe - as I had predicted. perhaps i need to tweak the code?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Babydum
    1) With this code in the sheet, it does the job of widening the cell, but then the arrow dissapears and you have to re-click on the cell to get it back.
    That is true of Data Validation period, nothing to do with the code. If you need to have an arrow at all times, you need a combobox (but has other disadvantages). If you just need to know where it is, colour it.

  5. #5
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Ok,

    Like I said, I can't have everything... Actually, I don't mind these little things anyway - it's more the end-users who moan until my ears drop off.

    Thanks again - they'll have to make do!!

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Babydum
    Thanks again - they'll have to make do!!
    Bang goes your medal.

  7. #7
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Nah, it's still a work of art - just one that requires a teeny bit more patience, that's all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •