Excel freezing with multiple files opened

paul315

New Member
Joined
Mar 16, 2011
Messages
1
Hi,

When I have multiple excel files opened, one being the file with the code below Excel freezes.

With only this file opened it works fine.

If another file is opened and has even simple macros it seems to cause confilct. (I have checked the other files)

The problem seems to occur around the worksheet_change, (I have removed this code to test) it freezes after the List item is selected.

If the user selects 'New' in a cell with Data Validation List,
then the next cell is populated with 'TBA'

acct1_name is a named range - row 6
acct10_name is a named range - row 15

thanks..
---
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo err_handler

Dim Row As Integer
Dim Col As Integer
Dim wb As Workbook
Dim sName As String
Dim sValue As String

Application.EnableEvents = False

Set wb = ThisWorkbook

sName = LCase(wb.Name)

Row = Target.Row

Col = Target.Column

sValue = Target.Value

If (Row >= wb.Sheets("IP").Range("acct1_name").Row And Row <= wb.Sheets("IP").Range("acct10_name").Row) Then

If Col = 8 Then

If sValue = "New" Then

'wb.Sheets("IP").Cells(Row, 9) = "TBA"
wb.Sheets("IP").Range("I" & Row).Value = "TBA"

End If

End If

End If

Application.EnableEvents = True

end sub



OS : WinXP, Excel 2003
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,224,603
Messages
6,179,855
Members
452,948
Latest member
UsmanAli786

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