Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Big font searchable dropdown List with Macro

0

I am uploading a workbook that contains a VBA script for a searchable dropdown list used in data entry sheet (Stock Entry Sheet). Could you please make a correction? The font size should be increased slightly for the stock entry sheet. If there are any errors that you can address, please correct them as well.

Answer
Discuss

Answers

0

Hi john666, 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Update Oct. 10 @ 15:00

I have added the revised file "CYCLE STOCK FIXED1 - Rev1.xlsm" which includes the code below. [ "STOCK ENTRY" code window ]You will see on the "STOCK ENTRY" sheet that when a cell with data validation is selected (Col C, D, E) the page zoom becomes 135%; when a cell without data validation is selected the page zoom is set back to 100%

As for checking for errors, I first found on "Sheet1" the macro "FindInstances" has variable "CatalogStart" but it has not been declared and does not have a cell reference. Sorry, but because of the vast amont of code in your workbook it will require much more time to error check completely than I am willing to do for free. Sorry.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I haven't reviewed your entire workbook, I've just addressed the dropdown list font size. There is no way to change the font size.

But you can make it easier to read using page zoom. An easy way to do this is with a Worksheet_SelectionChange event like the code below. When the cell containing the dropdown list is selected the page zoom is increased to a value of your choosing. When a different cell is selected the page zomm is reset to 100%.

Option Explicit
'

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    On Error GoTo LZoom
    Dim xZoom As Long
    xZoom = 100   ' default zoom level (your choice)

' if the validation cell is selected :
    If Target.Validation.Type = xlValidateList Then xZoom = 135   ' change zoom level to suit your needs

' when any cell without data validation gets selected :
LZoom:
    ActiveWindow.Zoom = xZoom   ' default zoom as set above

End Sub

I use "Option Explicit" at the top of all my code as it highlights errors as you type.

Hope this helps.

Your workbook has a lot going on, if I have some time in the next few days I will give it a deeper review to see if there are an errors.

If this solves things for you please mark my answer as Selected.

Cheers   :-)

Discuss

Discussion

I have added another Excel workbook named STOCK REG.xlsm. Can you please check the DATA2 sheet? Could you clarify why the macro does not work with the first uploaded file, CYCLE_STOCK_FIXED1.xlsm? Also, on the DATA2 sheet, how does the dropdown list appear in a large font? In which sheet can I use your code? . Can you provide an Excel workbook with the code included
john666 (rep: 2) Oct 10, '26 at 9:13 am
@john666
In your second file (STOCK REG) I am at a loss to understand how when selecting Col E the validation list shows in Col F; likewise Col H validation shows in Col I. When I select a cell in Col E the focus shifts to Col F and I am not allowed to view or make changes to to the validation rule.
WillieD24 (rep: 738) Oct 10, '26 at 3:47 pm
Add to Discussion


Answer the Question

You must create an account to use the forum. Create an Account or Login