VB code for drop-list menu width
Solved/Closed
Issa
-
Aug 11, 2011 at 10:01 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Aug 19, 2011 at 05:58 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Aug 19, 2011 at 05:58 AM
Related:
- VB code for drop-list menu width
- Battery reset code - Guide
- Whatsapp country code list - Guide
- Samsung volume increase code - Guide
- Show volume in menu bar mac - Guide
- Lava mobile reset codes list ✓ - Phones, PDA & GPS Forum
2 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Aug 11, 2011 at 10:39 AM
Aug 11, 2011 at 10:39 AM
Hi Issa,
1. Uhm adjust the width of column E. If you wish to autofit the column then record a macro. If you need help with that let me know.
2. This should not be possible. Did you made sure you applied your list to the entire column of E and not just a single cell like E1?
Best regards,
Trowa
1. Uhm adjust the width of column E. If you wish to autofit the column then record a macro. If you need help with that let me know.
2. This should not be possible. Did you made sure you applied your list to the entire column of E and not just a single cell like E1?
Best regards,
Trowa
Dear Trowa ,
Thanks to your prompt reply.
1. Yes I need help for the VBA code.
2. Yes it applied, to E1, E2, E3, etc this is what I mean.
Thank you.
Issa
Thanks to your prompt reply.
1. Yes I need help for the VBA code.
2. Yes it applied, to E1, E2, E3, etc this is what I mean.
Thank you.
Issa
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Aug 16, 2011 at 09:51 AM
Aug 16, 2011 at 09:51 AM
Hi Issa,
Sorry this reply took a little longer. I have some free days this time of the year.
1. Right-click on the sheets name > view code.
The Visual Basic window will open. Paste this code in the big white field:
2. That was basically my only guess. You could upload your file using a filesharing site, you I can take a look to see if I can find something else.
Best regards,
Trowa
Sorry this reply took a little longer. I have some free days this time of the year.
1. Right-click on the sheets name > view code.
The Visual Basic window will open. Paste this code in the big white field:
Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("E1").EntireColumn) Is Nothing Then Exit Sub Columns("E:E").EntireColumn.AutoFit End SubAny changes made in column E will autofit the column.
2. That was basically my only guess. You could upload your file using a filesharing site, you I can take a look to see if I can find something else.
Best regards,
Trowa
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Aug 18, 2011 at 09:28 AM
Aug 18, 2011 at 09:28 AM
Hi Issa,
The width of the drop down list is linked to the width of the column. So the only thing I can think of is to autofit the column in which you pull your drop down list data from and apply that width to the column of the drop down list.
Does this sound as a solution to you?
Best regards,
Trowa
The width of the drop down list is linked to the width of the column. So the only thing I can think of is to autofit the column in which you pull your drop down list data from and apply that width to the column of the drop down list.
Does this sound as a solution to you?
Best regards,
Trowa
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Aug 19, 2011 at 05:58 AM
Aug 19, 2011 at 05:58 AM
Two things.
1. You "think" ? Either it is solved or it is not. Why think part ?
2. It would have been nicer had you shared your solution too
One more thing, thanks for at least coming back and acknowledging help that Trowa provided. Not many people are courteous enough to do that.
1. You "think" ? Either it is solved or it is not. Why think part ?
2. It would have been nicer had you shared your solution too
One more thing, thanks for at least coming back and acknowledging help that Trowa provided. Not many people are courteous enough to do that.