Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB code crashing Excel maybe???

Status
Not open for further replies.

rob9740

Technical User
Nov 21, 2001
30
IE
Hi all,

Anybody know why the code below causes MS Office 97 on NT4 to crash after a few iterations?? Or is just one of those microsoft things???Anybody any ideas??

Public Sub Filter_List()

With Worksheets("CriteriaValues").Range("Criteria")
.Cells(2, 1).Value = InputBox(prompt:="Enter Customer
required")
.Cells(2, 2).Value = InputBox(prompt:="Enter Circuit
Number required")
End With

Worksheets("DataValues").Range("Data").AdvancedFilter
Action:=xlFilterInPlace, CriteriaRange _
:=Worksheets("CriteriaValues").Range("Criteria"),
Unique:=False

End Sub

Cheers,
Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top