0 votes
in VBA by Beginner (2 points)
Please, can someone explain this behavior?
I have a userform with 2 ComboBoxes. The 1st one is populated from a range of cells which contains 4-digit numbers (cells formatted as text) and has the AutoTab property set to TRUE and MaxLength set to 4. Both ComboBoxes have TabStop property set to TRUE. When I type in this 1st ComboBox a number, it tabs automatically as expected to the 2nd ComboBox, EXCEPT if the number ends in 0 and exists in the source. This behavior happens in the following Excel versions:

Office365Pro 16.0.11929.20436 32bit
2019Pro 16.0.12527.20260 32bit

However, in version Excel2010 14.0.7237.5000 32bit it behaves always as expected. Why is that so?

1 Answer

0 votes
by Beginner (12 points)
O combobox do office 365 é maia avançado que o office 2010 e muitas vezes da erro no carregamento. verifique se a bibloteca do office 365 é igual a usado no office 2010
by Beginner (2 points)
Muito obrigado pela resposta David. O problema deve ser mesmo as bibliotecas VBA do Office, uma vez que eu experimentei em 3 máquinas com o 2010 e funciona. Em outras 3, 2 com o 2019 e outra com o 365, o comportamento é aquele que eu descrevi. O autotab não funciona quando o conteúdo da combobox termina em zero e consta da lista de origem. Todo o resto do código (e é extenso) funciona em qualquer versão (todas 32 bit).

Welcome to wellsr Q&A
Ask any questions you have about VBA and Python and our community will help answer them. wellsr Q&A is the standalone question and answer platform for wellsr.com. If you have a question about one of our specific tutorials, please include a link back to the tutorial.

Getting Started
Register
VBA Cheat Sheets (On Sale Now)

Looking for something else? Hire our team directly through ourVBA Help page, instead.

For more programming tips visit the VBA Tutorials Blog and the Python Tutorials Blog.

...