Pls have a read here...
https://exceljet.net/formula/faster-vlookup-with-2-vlookups
Importing to access & then do the query will take more time as i expected & checked.
What i suggest that first run a collector file that will collect info from the each pc then put that serial no in the main file which needs to be protected.
You can't prevent the smart user!!
As it was expected & thinking about that...
Using array would be fast rather than writing line by line & to check it i have did few test & found below result on a PC having Core2Duo+4GB Ram+Win7+Excel 2007.
Best results are...
Shri : 2000 cells_0.00390625
Shri : 20000 cells_0.04296875
Shri ...
That might got replaced not skipped.
Try it.
Const sPath As String = "S:\ALL\Planning Team\Weekly Metrics\2017 Weekly_Metrics_Rebuild_V2\Weekly Metrics Reports\Clean Reports\SHORTAGE TEST\"
Sub Shortage_Attachments2()
Dim ns As Namespace
Dim Inbox As MAPIFolder, SubFolder As MAPIFolder
Dim...
This is what you need to change..
Print #1, Range("A" & iCntr);
& It's fast enough so doesn't need anything else as already suggested by the valuable inputs.
The link was for the Concatenate ; whenever you need in future!
After reading the article you will have something new to visualize...
https://www.experts-exchange.com/articles/7811/A-Better-Concatenate-Function.html
You can create new user with a little code which will check the duplication & add the new to the DB. This also be improved to login/out timestamp.
Pls start a new thread for very own query. You may ref the post there.
PP3321
It's because you have copied/imported the data in the sheet thus xl recognized the used range as [B1:C3].
Copy the cells [B2:C2] to another sheet & then check.