Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I cannot find a property for a command button on a UserForm so that I can use
as a trigger to stop or continue execution of the following code: rSalesPerson.Value = " " & frmCreditReceipts.listNames.Text rReceipt.Offset(counter, 0).Value = _ frmCreditReceipts.txtReceipt.Text rAmount.Offset(counter, 0).Value = _ frmCreditReceipts.txtReceipt.Text If frmCreditReceipts.listPayType.Text = "cheque" Then rCheck.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listPayType.Text = "transfer" Then rTransfer.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listNames.Text = "efectivo" Then rCash.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listPayType.Text = "nulo" Then rNulified.Text = "NULO" End If frmCreditReceipts.txtReceipt.Value = "" frmCreditReceipts.txtAmount.Value = "" frmCreditReceipts.txtAmount.SetFocus counter = counter + 1 I need the COUNTER to use as part of the Offset() property to enter the value of textboxes in a Worksheet. Thank you in advance for any ideas. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Where is the code you posted located... in the Click event of the
CommandButton or somewhere else? -- Rick (MVP - Excel) "oscar.c.marin" wrote in message ... I cannot find a property for a command button on a UserForm so that I can use as a trigger to stop or continue execution of the following code: rSalesPerson.Value = " " & frmCreditReceipts.listNames.Text rReceipt.Offset(counter, 0).Value = _ frmCreditReceipts.txtReceipt.Text rAmount.Offset(counter, 0).Value = _ frmCreditReceipts.txtReceipt.Text If frmCreditReceipts.listPayType.Text = "cheque" Then rCheck.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listPayType.Text = "transfer" Then rTransfer.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listNames.Text = "efectivo" Then rCash.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listPayType.Text = "nulo" Then rNulified.Text = "NULO" End If frmCreditReceipts.txtReceipt.Value = "" frmCreditReceipts.txtAmount.Value = "" frmCreditReceipts.txtAmount.SetFocus counter = counter + 1 I need the COUNTER to use as part of the Offset() property to enter the value of textboxes in a Worksheet. Thank you in advance for any ideas. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Rick Rothstein" wrote: Where is the code you posted located... in the Click event of the CommandButton or somewhere else? -- Rick (MVP - Excel) "oscar.c.marin" wrote in message ... I cannot find a property for a command button on a UserForm so that I can use as a trigger to stop or continue execution of the following code: rSalesPerson.Value = " " & frmCreditReceipts.listNames.Text rReceipt.Offset(counter, 0).Value = _ frmCreditReceipts.txtReceipt.Text rAmount.Offset(counter, 0).Value = _ frmCreditReceipts.txtReceipt.Text If frmCreditReceipts.listPayType.Text = "cheque" Then rCheck.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listPayType.Text = "transfer" Then rTransfer.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listNames.Text = "efectivo" Then rCash.Text = frmCreditReceipts.txtAmount.Value ElseIf frmCreditReceipts.listPayType.Text = "nulo" Then rNulified.Text = "NULO" End If frmCreditReceipts.txtReceipt.Value = "" frmCreditReceipts.txtAmount.Value = "" frmCreditReceipts.txtAmount.SetFocus counter = counter + 1 I need the COUNTER to use as part of the Offset() property to enter the value of textboxes in a Worksheet. Thank you in advance for any ideas. CORRECT : Private Sub cmmdIngresar_Click(). I want the user to press the cmmdIngresar ("Enter") command button, and by doing so, entering data in a worksheet, while he/she has not pressed the Exit command button. I assume the "value" of the command button Exti will be "False" or "0" before it is pressed though I didn't find that property. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deselect Command Button by Selecting another Command Button | Excel Programming | |||
VBA always creates linked chart even when using PasteExcelTable False, False, False in Office 2007 | Excel Programming | |||
Setting Many PivotItems' Visible property to False | Excel Programming | |||
VB's Command Button vs Form's Command Button | Excel Programming | |||
DisplayAlerts property is not changing to False | Excel Programming |