vba courses london - loop find
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Loop or Find

vba courses london - Loop or Find

resolvedResolved · Low Priority · Version Standard

replyReply Wed 22 Nov 2006, 16:23Liz (guest) said...

Loop or Find

Is it better to "loop" through a column of data to match a name entered in an input box or would it be better to use "find". Are there any pitfalls with find?

Thanks

For upcoming training course dates see: Pricing & availability

replyReply Fri 24 Nov 2006, 10:07 Edited on Fri 24 Nov 2006, 10:16Trainer Carlos said...

Use Loop or Find to Search Column

Using a Loop to look through a column is better and much more accurate.

Find searches the whole table for the value.

The pitfall of Find is that if you are searching for multiple values, you would still have to use some sort of loop as the system only finds one item at a time.

 

Vba tip:

Add A New Sheet at the end of the Workbook

To add a new sheet at the end of the workbook you need to count the sheets in the workbook using:

Sheets.Count

Then use this value as the rank of the sheet after which you want to add the new sheet:

Sheets.Add After:=Sheets(Sheets.Count)

View all VBA hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard