Results 1 to 2 of 2

Thread: Minimise A Form In Word?

  1. #1

    Thread Starter
    Lively Member gorounreal's Avatar
    Join Date
    Nov 2002
    Location
    Behind You
    Posts
    72

    Question Minimise A Form In Word?

    I was wanting to know how to minimise a word macro form in word.

    I know the coding in normal vb should be form.windowstate = vbminimised or something but vba doesn't have that function. does anyone know the code for making a form minimise?

    Thanks.
    AMD Athlon 4200 X2, Ati Radeon x1950 Pro 512mb, 2gb Ram, Sound Blaster X-Fi XtremeMusic

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    Probably just use the .Show and.hide methods.
    VB Code:
    1. ' This is the Initialize event procedure for UserForm1
    2. Private Sub UserForm_Initialize()
    3.     Load UserForm2
    4.     UserForm2.Show
    5. End Sub
    6. ' This is the Click event for UserForm2
    7. Private Sub UserForm_Click()
    8.     UserForm2.Hide
    9. End Sub
    10.  
    11. ' This is the click event for UserForm1
    12. Private Sub UserForm_Click()
    13.     UserForm2.Show
    14. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width