Put this script in the sheet named "Input"
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("C2")) Is Nothing Then
If Target.Value = "Estimate" Then Sheets("Quote").TextBox6.Value = Sheets("Wages & Rates").Range("J16").Value
If Target.Value = "Lump Sum" Then Sheets("Quote").TextBox6.Value = Sheets("Wages & Rates").Range("J18").Value
End If
End Sub
THank you! I already have a macro in this sheet:
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color:
#000000 ; background-color:
#ffffff } p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color:
#000000 ; background-color:
#ffffff ; min-height: 13.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; background-color:
#ffffff ; min-height: 13.0px} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color:
#008f00 ; background-color:
#ffffff } p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color:
#011993 ; background-color:
#ffffff } span.s1 {color:
#011993 } span.s2 {color:
#000000 } </style>Private Sub Worksheet_Change(ByVal Target As Range)
Dim wsI As Worksheet, wsQ As Worksheet, x As Long
'limit change monitoring to C3
If Target.Count > 1 Then Exit Sub
If Target.Address <> "$C$3" Then Exit Sub
Set wsI = Sheets("Input")
Set wsQ = Sheets("Quote")
Application.ScreenUpdating = False
x = Target.Value * 17
With wsI
.Unprotect
.Rows("8:1027").Hidden = True
If x > 0 Then .Cells(8, 1).Resize(x).EntireRow.Hidden = False
.Protect
End With
With wsQ
.Unprotect
.Rows("9:1028").Hidden = True
If x > 0 Then .Cells(9, 1).Resize(x).EntireRow.Hidden = False
.Protect
End With
Application.ScreenUpdating = True
End Sub
How would i combine them? I researhed and could not find any good information on this and as you have discorvered i have very little information about this stuff. Thank you again.