Ne pas afficher la fenêtre Excel

Bonjour,

je suis nouveau sur ce forum et j'aimerais savoir comment on peut, en VBA, afficher un formulaire (Userform) sans la fenêtre d'Excel. J'ai bien essayé "minimize", mais je n'affiche rien dans ce cas.

Merci

AD

Bonjour

A tester

'Pour masquer
ThisWorkbook.Application.WindowState = xlMinimized
' Pour démasquer
ThisWorkbook.Application.WindowState = xlMaximized

' ou

'Pour masquer
ThisWorkbook.Application.Visible = False
' Pour démasquer
ThisWorkbook.Application.Visible = True

Userform1.Show

merci Banzai64 pour cette info; avec "visible=false" cela fonctionne comme je voulais.

Rechercher des sujets similaires à "pas afficher fenetre"