Combobox excel размер шрифта

 

Olga H.

Пользователь

Сообщений: 383
Регистрация: 18.12.2013

Подскажите пожалуйста, как изменить на размер шрифта на ячейке A1, на которой находится выпадающий список, построенный при помощи ActiveX. Чтобы на ячейке A1 проявлялись данные шрифтом размером 10. А так данные проявляются шрифтом с размером 11.

 

ikki

Пользователь

Сообщений: 9709
Регистрация: 22.12.2012

вкладка Разработчик, включить Режим конструктора, выделить комбобокс, кнопка Свойства, найти в перечне свойств Font, нажать на кнопку с многоточием — изменить на нужное.
и не забыть после этого отключить Режим конструктора

фрилансер Excel, VBA — контакты в профиле
«Совершенствоваться не обязательно. Выживание — дело добровольное.» Э.Деминг

 

Olga H.

Пользователь

Сообщений: 383
Регистрация: 18.12.2013

#3

22.06.2015 17:55:53

ikki,спасибо, сработало. Тут такая «хитрость»: эта кнопка, «многоточие», не видна в свойствах комбобокса, пока не активируешь Font. Щёлкнула на Font -и многоточие появилось.

I was wondering if its possible to Style a Drop Down List in Excel. The text is rather small and has no styling and I was wondering if the drop down list styling could be changed?

What would actually make sense is if the drop down list items copied the same styling as its source cells, i.e. alternating background colour of cells, font, size, etc. Or even the copying of the style of the validation cell itself!?

Is there any way to change this using VBA or any other 3rd party method?

Community's user avatar

asked Nov 14, 2012 at 13:45

Christopher Leach's user avatar

Unfortunately, you can’t change the font size or styling in a drop-down list that is created using data validation.

You can style the text in a combo box, however. Follow the instructions here: Excel Data Validation Combo Box

answered Nov 14, 2012 at 14:22

Jon Crowell's user avatar

Jon CrowellJon Crowell

21.5k14 gold badges88 silver badges110 bronze badges

1

You cannot change the default but there is a codeless workaround.

Select the whole sheet and change the font size on your data to something small, like 10 or 12.
When you zoom in to view the data you will find that the drop down box entries are now visible.

To emphasize, the issue is not so much with the size of the font in the drop down, it is the relative size between drop down and data display font sizes.

answered Sep 10, 2013 at 19:12

Peter Tashkoff's user avatar

I work on 60-70% zoom vue and my dropdown are unreadable so I made this simple code to overcome the issue

Note that I selected first all my dropdown lsts (CTRL+mouse click), went on formula tab, clicked «define name» and called them «ProduktSelection»

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Dim KeyCells As Range
Set KeyCells = Range("ProduktSelection")
    If Not Application.Intersect(KeyCells, Range(Target.Address)) _
           Is Nothing Then

ActiveWindow.Zoom = 100

End If

End Sub

I then have another sub

Private Sub Worksheet_Change(ByVal Target As Range) 

where I come back to 65% when value is changed.

Glorfindel's user avatar

Glorfindel

21.7k13 gold badges80 silver badges105 bronze badges

answered Jul 26, 2015 at 12:41

Kamolga's user avatar

Try making the whole sheet font size smaller. Then zoom and save. Make a practice sheet first because it really screws everything up.

answered Sep 29, 2016 at 17:07

Billy Bob's user avatar

I created a custom view that is at 100%. Use the dropdowns then click to view page layout to go back to a smaller view.

answered Jun 4, 2019 at 13:57

TRaggsy's user avatar

1

doc увеличить размер шрифта раскрывающийся список 1

Выпадающий список — очень полезная функция в Excel, когда вы создаете раскрывающийся список на своем листе, пробовали ли вы когда-нибудь увеличить размер шрифта раскрывающегося списка, чтобы сделать выбранную запись больше и более читаемой, как показано на скриншоте слева? В этой статье будет рассказано об обходном пути для ее решения.

Увеличьте размер шрифта раскрывающегося списка с помощью кода VBA, чтобы увеличить масштаб


Увеличьте размер шрифта раскрывающегося списка с помощью кода VBA, чтобы увеличить масштаб

На самом деле, у нас нет прямого способа увеличить размер шрифта раскрывающегося списка, но вы можете применить следующий код VBA, чтобы изменить настройку масштабирования ячеек раскрывающегося списка, чтобы текст выглядел больше. Пожалуйста, сделайте следующее:

1. Перейдите на рабочий лист, содержащий раскрывающийся список, размер шрифта которого вы хотите увеличить.

2. Щелкните правой кнопкой мыши вкладку листа и выберите Просмотреть код из контекстного меню во всплывающем Microsoft Visual Basic для приложений окна, скопируйте и вставьте следующий код в пустое Модули окна:

Код VBA: увеличьте размер шрифта раскрывающегося списка, чтобы увеличить масштаб ячейки

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'updateby Extendoffice
    On Error GoTo LZoom
    Dim xZoom As Long
    xZoom = 100
    If Target.Validation.Type = xlValidateList Then xZoom = 130
LZoom:
    ActiveWindow.Zoom = xZoom
End Sub

3. Затем сохраните и закройте этот код, теперь, когда вы щелкаете ячейки раскрывающегося списка, масштаб ячейки будет увеличен, а раскрывающийся список будет казаться больше, но, когда вы щелкнете другие ячейки, не содержащие раскрывающегося списка, увеличение ячейки будет нормальным.

Внимание: В приведенном выше коде хЗум = 130 изменит масштаб ячеек раскрывающегося списка на 130, вы можете изменить это значение масштабирования по своему усмотрению.


Создать выпадающий список с флажками в Excel

Если вам нужно создать раскрывающийся список с несколькими флажками, чтобы выбрать несколько элементов из списка в одну ячейку, возможно, у вас нет прямого способа решить эту задачу. Но, Kutools for Excel поддерживают удивительную функцию — Раскрывающийся список с флажкамис помощью этой функции вы можете быстро создать раскрывающийся список с флажками в указанном диапазоне, текущем листе, текущей книге или всех открытых книгах в зависимости от ваших потребностей.  Нажмите, чтобы скачать Kutools for Excel!


Демонстрация: увеличьте размер шрифта раскрывающегося списка с помощью кода VBA, чтобы увеличить масштаб


Лучшие инструменты для работы в офисе

Kutools for Excel Решит большинство ваших проблем и повысит вашу производительность на 80%

  • Снова использовать: Быстро вставить сложные формулы, диаграммы и все, что вы использовали раньше; Зашифровать ячейки с паролем; Создать список рассылки и отправлять электронные письма …
  • Бар Супер Формулы (легко редактировать несколько строк текста и формул); Макет для чтения (легко читать и редактировать большое количество ячеек); Вставить в отфильтрованный диапазон
  • Объединить ячейки / строки / столбцы без потери данных; Разделить содержимое ячеек; Объединить повторяющиеся строки / столбцы… Предотвращение дублирования ячеек; Сравнить диапазоны
  • Выберите Дубликат или Уникальный Ряды; Выбрать пустые строки (все ячейки пустые); Супер находка и нечеткая находка во многих рабочих тетрадях; Случайный выбор …
  • Точная копия Несколько ячеек без изменения ссылки на формулу; Автоматическое создание ссылок на несколько листов; Вставить пули, Флажки и многое другое …
  • Извлечь текст, Добавить текст, Удалить по позиции, Удалить пробел; Создание и печать промежуточных итогов по страницам; Преобразование содержимого ячеек в комментарии
  • Суперфильтр (сохранять и применять схемы фильтров к другим листам); Расширенная сортировка по месяцам / неделям / дням, периодичности и др .; Специальный фильтр жирным, курсивом …
  • Комбинируйте книги и рабочие листы; Объединить таблицы на основе ключевых столбцов; Разделить данные на несколько листов; Пакетное преобразование xls, xlsx и PDF
  • Более 300 мощных функций. Поддерживает Office/Excel 2007-2021 и 365. Поддерживает все языки. Простое развертывание на вашем предприятии или в организации. Полнофункциональная 30-дневная бесплатная пробная версия. 60-дневная гарантия возврата денег.

вкладка kte 201905


Вкладка Office: интерфейс с вкладками в Office и упрощение работы

  • Включение редактирования и чтения с вкладками в Word, Excel, PowerPoint, Издатель, доступ, Visio и проект.
  • Открывайте и создавайте несколько документов на новых вкладках одного окна, а не в новых окнах.
  • Повышает вашу продуктивность на 50% и сокращает количество щелчков мышью на сотни каждый день!

офисный дно

Комментарии (27)


Оценок пока нет. Оцените первым!

Written by Allen Wyatt (last updated November 14, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003


One of the ways that Excel allows you to create interactive worksheets is by adding combo boxes to them. The combo box allows a user to select from a pre-determined number of options, and thereby make data entry more consistent.

When you insert a combo box, it uses a pre-defined typeface and font size. After seeing the size used, you may wonder if there is a way to change to a larger font size, particularly so the combo box is easier to read on worksheet printouts.

Excel provides two different combo boxes you can use in your forms. One is on the Forms toolbar, and the other in the Control Toolbox. The combo box available from the Forms toolbar is easier to use than the one in the Control Toolbox, but it is not as versatile. Setting the font size for the combo box is one example of why this is true. If you want to change the font size in the combo box, you should use the one available from the Control Toolbox.

To display the Control Toolbox, choose Toolbars from the View menu, then choose Control Toolbox. With your combo box placed on your worksheet, you can change the font size used in the control by clicking on the combo box, then clicking on the Properties tool in the Control Toolbox. In the resulting Properties dialog box, you can select the font and change it to suit your needs.

ExcelTips is your source for cost-effective Microsoft Excel training.
This tip (2555) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Author Bio

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. Learn more about Allen…

MORE FROM ALLEN

Asking for Delete Confirmation

When you select some text and then press the Del key, the text should immediately be removed from your document. If you …

Discover More

Finding All Instances of a Value

Searching for information in an Excel worksheet generally goes very smoothly. There can be times, however, when the …

Discover More

Understanding Add-Ins

The primary way to extend what Excel can do is through the use of add-ins. This tip explains what they are and the …

Discover More

More ExcelTips (menu)

Changing Font Size Using a Shortcut Key

Want to adjust the font size used in a cell or range of cells? It’s easy to do by using the shortcut described in this tip.

Discover More

Converting From Numbers to Text

If you have a range of numeric values in your worksheet, you may want to change them from numbers to text values. Here’s …

Discover More

Controlling How Excel Interprets Percentages

When entering data in a worksheet, Excel tries to figure out how your entry can best be shown on the screen. When it …

Discover More

@BillyHank1402 

Unfortunately, the font size of a drop-down list can only be changed using VBA.

However, you can make the font smaller around the drop-down box (or across the entire sheet), and then zoom in on the overall view. In this way, the font in the drop-down field is also displayed larger.

VBA code :
Alternatively, only with a little trick — simply enlarge the zoom to, for example, 200 when a cell is selected with a dropdown (otherwise set it back to 100):
Change event must be incorporated.

Private Sub Worksheet_Change (ByVal Target As Excel.Range)
On Error Resume Next
If Target.Validation.InCellDropdown Then ActiveWindow.Zoom = 100
End Sub

Private Sub Worksheet_SelectionChange (ByVal Target As Excel.Range)
On Error GoTo error handler
If Target.Validation.InCellDropdown Then ActiveWindow.Zoom = 200
Exit Sub
error handler:
ActiveWindow.Zoom = 100
End Sub

Hope I was able to help you.

Wish you continued success with Excel (the coolest invention since Chocola … uh … Microsoft! :-)))
And … Please keep asking here — I’ve just taught myself Excel with the help of this forum … almost

Nikolino

I know I don’t know anything (Socrates)

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here

Понравилась статья? Поделить с друзьями:
  • Combine cells with data in excel
  • Combobox activex vba excel как заполнить
  • Combine cells in excel to one cell
  • Combo charts in excel
  • Combine 2 images in word