Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm getting an object required error. I'm not sure what I'm doing wrong. (newbie) I want to change the value in my database based on what I type in my forms text box. Any ideas? Here is my code: Private Sub CommandButtonPriceButtonPrevious_Click() Set pb = Worksheets("PriceBook").Range("PriceBookDatabase") pbra = Application.VLookup(Label1stICLabel.Caption, pb, 2, False) pbwa = Application.VLookup(Label1stICLabel.Caption, pb, 3, False) pbrb = Application.VLookup(Label1stICLabel.Caption, pb, 4, False) pbwb = Application.VLookup(Label1stICLabel.Caption, pb, 5, False) pbrc = Application.VLookup(Label1stICLabel.Caption, pb, 6, False) pbwc = Application.VLookup(Label1stICLabel.Caption, pb, 7, False) pbrx = Application.VLookup(Label1stICLabel.Caption, pb, 8, False) pbwx = Application.VLookup(Label1stICLabel.Caption, pb, 9, False) pbra.Value = Me.TextBoxGradeA_RetailValue.Value pbwa.Value = Me.TextBoxGradeA_WholesaleValue.Value pbrb.Value = Me.TextBoxGradeB_RetailValue.Value pbwb.Value = Me.TextBoxGradeB_WholesaleValue.Value pbrc.Value = Me.TextBoxGradeC_RetailValue.Value pbwc.Value = Me.TextBoxGradeC_WholesaleValue.Value pbrx.Value = Me.TextBoxGradeX_RetailValue.Value pbwx.Value = Me.TextBoxGradeX_WholesaleValue.Value MultiPage2.Value = 13 End Sub -- ssjody ------------------------------------------------------------------------ ssjody's Profile: http://www.excelforum.com/member.php...o&userid=33398 View this thread: http://www.excelforum.com/showthread...hreadid=555205 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If (Vlookup 0) working, but what if Vlookup cell does not exist | Excel Worksheet Functions | |||
VLookUp - Does the VLookUp return the exact information? | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |