Consulting

Results 1 to 2 of 2

Thread: Simple problem with form sizing

  1. #1

    Red face Simple problem with form sizing

    Ok a really simple problem and i think im just being dense. I want to have the form to display maximised across the whole screen but cant figure out how to do this ... i know im just being dense but after 3 days with no sleep and crazy workload its understandable haha


  2. #2
    VBAX Regular
    Joined
    Feb 2008
    Posts
    54
    Location
    Try something like this:
    [vba]Sub MaximizeForm()
    UserForm1.Top = 0
    UserForm1.Left = 0
    UserForm1.Width = ActiveWindow.Width
    UserForm1.Height = ActiveWindow.Height
    UserForm1.Show
    End Sub
    [/vba]

    or this:
    [VBA]Sub MaximizeForm()
    UserForm1.Top = Application.Top
    UserForm1.Left = Application.Left
    UserForm1.Width = Application.Width
    UserForm1.Height = Application.Height
    UserForm1.Show
    End Sub
    [/VBA]

Posting Permissions

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