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
wellsr Q&A is the VBA and Python programming community that rewards you for learning how to code.

Getting Started
Register
VBA Cheat Sheets (On Sale Now)

Earn free prizes for asking VBA and Python questions and for answering questions asked by others in our community.

Looking for something else? Hire our professional VBA Help, instead.

What makes us different?
Our points system rewards you with a chance for free gifts based on the quality of your questions and answers. All you have to do is post and you could get rewarded, like these members:

ParserMonster $25 Amazon Gift Card
Hightree $10 Amazon Gift Card
Thales1 $10 Amazon Gift Card
runfunke $10 Amazon Gift Card
coolag $10 Amazon Gift Card
Siew Hun $10 Amazon Gift Card

So, why don't you join us? It really is an encouraging way to motivate members in our VBA and Python community.

Register

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

...