Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to add a button to a Form in code. When I run the code below the
form shows without a button on it. Why is this? Dim NewBttn As MSForms.CommandButton Set NewBttn = UserForm1.Controls.Add("forms.CommandButton.1") NewBttn.Top = FirstRowSquareTop * Counter NewBttn.Left = FirstRowSquareLeft * Counter NewBttn.Width = FirstRowWidth * Counter NewBttn.Visible = True 'Set NewBttn = Nothing UserForm1.Show End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to assign same code inside Option button code space ?? | Excel Programming | |||
Adding Code to Command Button Added At Run Time | Excel Programming | |||
Adding Code to Command Button at Run Time | Excel Programming | |||
Hit a button with VBA code | Excel Programming | |||
How to make a button VBA code reference other VBA code subroutines??? | Excel Programming |