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!

Upgrade VBA Woes [xl97 to xl2000]

Status
Not open for further replies.

sjpistolesi

Programmer
Jun 6, 2002
71
US
In an earlier versions of Excel, up to xl97, used the following VBA instruction with no problems in a FOR EACH .... NEXT loop:

Columns("A").Find(MyProgID, after:=[A1]).Select

The Program ID (MyProgID) would change display of rows without incident.

Now, for some reason, this becomes a "locked" condition state and errors ["failed"] are generated when attempting to perform this function on a sequential Program ID.

Is there now, in version xl2000, an instruction that I need to use to toggle off the previous "Find" selection, before moving to the next "Find" selection?

Playing with the spreadsheet being used, I've needed to either "refresh" the data using "Data/Refresh Data" in order to release the previous "Find" .... otherwise the spreadsheet stays locked in the previous state, displaying the previous ProgID.

Frustrating ... Sandy Pistolesi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top