T
timbob
Weird one this.....
I've got a spreadsheet with many tabs thats used as a
costing tool. On my input tab, I have a drop down list to
state what sort of costing it is; just A, just B or A&B.
I got this great bit of code that hides rows repending on
what the answer is:
Private Sub Worksheet_Change(ByVal Target As Range)
Rows("13:37").EntireRow.Hidden = False
If Range("c5") = "A" Then
Rows("13:18").EntireRow.Hidden = True
ElseIf Range("c5") = "B" Then
Rows("20:37").EntireRow.Hidden = True
End If
End Sub
This is a private sub on that worksheet.
Problem - on another sheet I'm summarizing information
that is on other tabs in the spreadsheet. This sheet
references a module that I got from VBnet - to convert
numbers (1,2,3) into text (one, two, three).
On the summary sheet, if the cell with the summed up
number in uses a worksheet formula, such as ROUNDUP or
SUM, the bit of code above stops working. This is really
odd. As soon as I remove the functions and just type the
number in, it works again.
Any ideas?
I've got a spreadsheet with many tabs thats used as a
costing tool. On my input tab, I have a drop down list to
state what sort of costing it is; just A, just B or A&B.
I got this great bit of code that hides rows repending on
what the answer is:
Private Sub Worksheet_Change(ByVal Target As Range)
Rows("13:37").EntireRow.Hidden = False
If Range("c5") = "A" Then
Rows("13:18").EntireRow.Hidden = True
ElseIf Range("c5") = "B" Then
Rows("20:37").EntireRow.Hidden = True
End If
End Sub
This is a private sub on that worksheet.
Problem - on another sheet I'm summarizing information
that is on other tabs in the spreadsheet. This sheet
references a module that I got from VBnet - to convert
numbers (1,2,3) into text (one, two, three).
On the summary sheet, if the cell with the summed up
number in uses a worksheet formula, such as ROUNDUP or
SUM, the bit of code above stops working. This is really
odd. As soon as I remove the functions and just type the
number in, it works again.
Any ideas?