Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With this macro I set my userform to maximum screensinze.
Sub UserForm_Initialize() With Application Me.Top = .Top Me.Left = .Left Me.Height = .Height Me.Width = .Width End With End Sub In the footer of the userform I would like to place some bittons / remarks and tried this code: Private Sub UserForm_Activate() CommandButton1.Top = UserForm1.Height - 20 End Sub But, this will not work. Someone have an idea? Gert-Jan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try:
CommandButton1.Top = Me.top + Me.Height - 20 HTH -- AP "Gert-Jan" a écrit dans le message de news: ... With this macro I set my userform to maximum screensinze. Sub UserForm_Initialize() With Application Me.Top = .Top Me.Left = .Left Me.Height = .Height Me.Width = .Width End With End Sub In the footer of the userform I would like to place some bittons / remarks and tried this code: Private Sub UserForm_Activate() CommandButton1.Top = UserForm1.Height - 20 End Sub But, this will not work. Someone have an idea? Gert-Jan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, this works (-20 isn't enough, you need -60 at least.)
"Ardus Petus" schreef in bericht ... Try: CommandButton1.Top = Me.top + Me.Height - 20 HTH -- AP "Gert-Jan" a écrit dans le message de news: ... With this macro I set my userform to maximum screensinze. Sub UserForm_Initialize() With Application Me.Top = .Top Me.Left = .Left Me.Height = .Height Me.Width = .Width End With End Sub In the footer of the userform I would like to place some bittons / remarks and tried this code: Private Sub UserForm_Activate() CommandButton1.Top = UserForm1.Height - 20 End Sub But, this will not work. Someone have an idea? Gert-Jan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
buttons and boxes in userform | Excel Discussion (Misc queries) | |||
Option Buttons move after placing on sheet | Excel Worksheet Functions | |||
Placing a 'find'(ctrl+F) button in a UserForm | Excel Programming | |||
help required with placing command buttons in Excel | Excel Programming | |||
How to add textbox/buttons to an UserForm | Excel Programming |