1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Wider drop down list

Discussion in 'Business Applications' started by SpiffyMasta, Nov 21, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. SpiffyMasta

    SpiffyMasta Thread Starter

    Joined:
    Aug 4, 2004
    Messages:
    117
    Is there a way to make a drop down list wider then the width of the cell it's in?
     
  2. bomb #21

    bomb #21

    Joined:
    Jul 1, 2005
    Messages:
    8,546
  3. SpiffyMasta

    SpiffyMasta Thread Starter

    Joined:
    Aug 4, 2004
    Messages:
    117
    I tried that but it doesn't seem to work
     
  4. bomb #21

    bomb #21

    Joined:
    Jul 1, 2005
    Messages:
    8,546
    Did it do nothing at all? For me it temp widens the validation column. Maybe you're after something else entirely.
     
  5. SpiffyMasta

    SpiffyMasta Thread Starter

    Joined:
    Aug 4, 2004
    Messages:
    117
    I'm gonna try a combo box instead
     
  6. SpiffyMasta

    SpiffyMasta Thread Starter

    Joined:
    Aug 4, 2004
    Messages:
    117
    Nevermind, comboboxes are dumb.

    What numbers do I need to change to adjusts to my needs? I'm not sure what each number is for
     
  7. bomb #21

    bomb #21

    Joined:
    Jul 1, 2005
    Messages:
    8,546
    They really aren't. :D

    How about clarifying "it doesn't seem to work"? :)
     
  8. SpiffyMasta

    SpiffyMasta Thread Starter

    Joined:
    Aug 4, 2004
    Messages:
    117
    Lol ok. Well see what I'm trying to do is adjust the size of the drop down list so you see the whole name. The size of my cell has to stay the same.

    I'm tinkering with the code you pointed to, trying to have it so only a set range changes size. Right now it looks like this. I used to be good at coding, but haven't done it in years.

    Dim SelRng As Range
    Set SelRng = ActiveSheet.Range("$H$3:$AU$3")
    If Target.Count > 1 Then Exit Sub
    If Target.Range = SelRng Then
    Target.Range.ColumnWidth = 20
    Else
    SelRng.ColumnWidth = 5.57
    End If
    End Sub
     
  9. SpiffyMasta

    SpiffyMasta Thread Starter

    Joined:
    Aug 4, 2004
    Messages:
    117
    Still unsolved.

    I've actually started doing some reading into VBA coding. Hopefully that can help.
     
  10. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1027899

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice