Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Easy one- Comman button close
What is the code to get a command button to populate a
field and then close the form when the user clicks the button once? So far the code I have is: Private Sub CommandButton1_Click() Worksheets("Sheet1").Range("C4").Value = TextBox1.Text End Sub What am I missing please? Thanks, David |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Easy one- Comman button close
Hi David
Private Sub CommandButton1_Click() Worksheets("Sheet1").Range("C4").Value = TextBox1.Text Unload Me End Sub -- XL2002 Regards William "David" wrote in message ... | What is the code to get a command button to populate a | field and then close the form when the user clicks the | button once? | | So far the code I have is: | | Private Sub CommandButton1_Click() | Worksheets("Sheet1").Range("C4").Value = TextBox1.Text | | End Sub | | What am I missing please? | | Thanks, | David |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Easy one- Comman button close
Add one line:
Private Sub CommandButton1_Click() Worksheets("Sheet1").Range("C4").Value = TextBox1.Text Unload Me End Sub -- Message posted from http://www.ExcelForum.com |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Easy one- Comman button close
Hi David
Worksheets("Sheet1").Range("C4").Value = TextBox1.Text Unload Me -- Regards Ron de Bruin http://www.rondebruin.nl "David" wrote in message ... What is the code to get a command button to populate a field and then close the form when the user clicks the button once? So far the code I have is: Private Sub CommandButton1_Click() Worksheets("Sheet1").Range("C4").Value = TextBox1.Text End Sub What am I missing please? Thanks, David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Comman Button | New Users to Excel | |||
Comman Button to Save Worksheet as Workbook | Excel Discussion (Misc queries) | |||
Auto filter through the Comman Button | Excel Worksheet Functions | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
Comman Button to open another application | Excel Programming |