Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
home delivery db
I am trying to process home delivery orders in excel.. I
made a page where when I imput the tel. no. of the client, his information, if exists, is brought to this screen form a given db, but I am using FOR and NEXT with a variable to look for the inputed tel no. in the db in the correspondin column, the variable being the row no., once it is found I bring the rest of the info. to the main page(address, name, etc.) I cant use vlookup because if the client does not exist the cells must be filled by hand, in doing so, I would erase the vlookp formula. It is working, the problem is that now it takes quite a while to find a client since my db is bigger now. Is there a faster command in excel vb to do this? if so, how? Please respond to thanks .. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
home delivery db
you might load your db into an array and search the array - or you might
preprocess your db to put selected information in an array, organized to support fast retrieval/query. There are many algorithms for doing searches besides doing a for - next loop through all your data. Binary search comes to mind, but your data (which may be an extract of your database) would need to be sorted. -- Regards, Tom Ogilvy "jbabb" wrote in message ... I am trying to process home delivery orders in excel.. I made a page where when I imput the tel. no. of the client, his information, if exists, is brought to this screen form a given db, but I am using FOR and NEXT with a variable to look for the inputed tel no. in the db in the correspondin column, the variable being the row no., once it is found I bring the rest of the info. to the main page(address, name, etc.) I cant use vlookup because if the client does not exist the cells must be filled by hand, in doing so, I would erase the vlookp formula. It is working, the problem is that now it takes quite a while to find a client since my db is bigger now. Is there a faster command in excel vb to do this? if so, how? Please respond to thanks . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
home delivery db
Have a look at Find. Type Find in the VB editor then press your F1 key to get Help.
Regards BrianB ========================== "jbabb" wrote in message ... I am trying to process home delivery orders in excel.. I made a page where when I imput the tel. no. of the client, his information, if exists, is brought to this screen form a given db, but I am using FOR and NEXT with a variable to look for the inputed tel no. in the db in the correspondin column, the variable being the row no., once it is found I bring the rest of the info. to the main page(address, name, etc.) I cant use vlookup because if the client does not exist the cells must be filled by hand, in doing so, I would erase the vlookp formula. It is working, the problem is that now it takes quite a while to find a client since my db is bigger now. Is there a faster command in excel vb to do this? if so, how? Please respond to thanks . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I want a template for a delivery note | New Users to Excel | |||
Overdue Delivery Dates | New Users to Excel | |||
DELIVERY NOTES | Excel Worksheet Functions | |||
Shortcut keys: CNTRL+HOME vs. HOME | Excel Discussion (Misc queries) | |||
Delivery note or delivery order sheet | Excel Discussion (Misc queries) |