Save ComboBox1 & TextBox4 to Sheet roofing B8

toecutter

New Member
Joined
Nov 8, 2005
Messages
2
hi
i am gettin a "complie error" message box with
"invalid or unqualified reference"
new to VBA so any help will be appreciated

thx
toe
Code:
Private Sub CommandButton3_Click() 
     
     'Exit
     
    s = MsgBox("Save roof?", vbYesNo) 
    If s = 6 Then 
         
        s = .Range("B8").End(xlUp).Offset(1, 0).Row 
        Cells(s, 2) = ComboBox1.Value 
        Cells(s, 3) = TextBox4.Value 
    End If 
     
     'ask to save roof material to roofing sheet B8 then B9 then B10 etc and roof quanitiy to column C8 then c9 then C10 etc
     'if yes
     'save roof amount from TextBox4 to roofing sheet B8 then B9 then B10 etc and roof quanitiy to column C8 then c9 then C10 etc
     'then exit
     'if no
     'then exit
    Unload Me 
End Sub
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
toecutter

Try not to cross post, I've answered you over on OzGrid.

Remember the people on these sites are from all around the world, in many different time zones.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top