Hello again helpful people,
Excel 2007 and Windows XP.
How to begin? This is a weird issue. I have a really big spreadsheet with lots of VBA in it. On two of the worksheets, right-click pasting causes Excel to freeze. Ctrl-V does NOT.
On the pages in question there are 7 drop downs that do a lot. One of the things is that they cause the formatting to be changed, with code like this:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
The other thing they do it activate a bunch of nested vlookups like this:
None of the other worksheets cause the freezing, but none of them have all of this code, either. Is there any known reason why this would be happening? Is there anything I can do to stop it from happening?
Thanks all.
Excel 2007 and Windows XP.
How to begin? This is a weird issue. I have a really big spreadsheet with lots of VBA in it. On two of the worksheets, right-click pasting causes Excel to freeze. Ctrl-V does NOT.
On the pages in question there are 7 drop downs that do a lot. One of the things is that they cause the formatting to be changed, with code like this:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Code:
If [A44] = "Response Time: Percent Calls under 30 Minutes" Or [A44] = "Response Time: Percent Calls under 60 Minutes" Or [A44] = "Response Time: Percent Calls over 60 Minutes" Or [A44] = "Response Time: Percent of Calls Over 90 Minutes" Or [A44] = "Response Time: Percent of Calls over 120 minutes" Then
Range("B50:C62").NumberFormat = "0.00%"
Else
Range("B50:C62").NumberFormat = "#,##0"
End If
If [A4] = "Payment Amounts" Then
'CHANGE RANGE TO CURRENCY WITH COMMA
Range("B8:F22").NumberFormat = "$#,##0.00"
'CHANGE RANGE TO TEXT
Range("E7:F7").NumberFormat = "@"
The other thing they do it activate a bunch of nested vlookups like this:
Code:
=IFERROR(IF(ISERROR(VLOOKUP(Lookups!$B2&" "&$B$1,AZ_SR_DATA_FACL!$F$4:$K$499218,4,0)),"",IF($A$4=Lookups!$E$1,VLOOKUP(Lookups!$B2&" "&$B$1,AZ_SR_DATA_FACL!$F$4:$K$499218,4,0),IF($A$4=Lookups!$E$2,VLOOKUP(Lookups!$B2&" "&$B$1,AZ_SR_DATA_FACL!$T$4:$W$499218,4,0),IF($A$4=Lookups!$E$3,VLOOKUP(Lookups!$B2&" "&$B$1,AZ_SR_DATA_FACL!$AD$4:$AH$499218,4,0),IF($A$4=Lookups!$E$4,VLOOKUP(Lookups!B2&" "&$B$1,AZ_SR_DATA_FACL!$F$4:$K$499218,6,0)))))),"")
None of the other worksheets cause the freezing, but none of them have all of this code, either. Is there any known reason why this would be happening? Is there anything I can do to stop it from happening?
Thanks all.