LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Retrieve data from a spreadsheet

Turn on the macro recorder, select the column, do Edit=find and find you
value. Turn off the macro recorder. Now use the recorded code to replace
you loop. Replace the hard coded serial number with a variable containing
the user's serial number.

Regards,
Tom Ogilvy


Dave wrote in message
...
Hi,
Can someone show me a better way to do the following:

I have a form with a "Find" button on. When the user presses Find they are
asked to input a serial number. Then the macro looks down the serial

number
column in the spreadsheet, finds the number then returns all the data on

the
row back to the form.
I use a for i = 1 to 1000 and just keep looping through untill the serial
number is found. The spreadsheet is really big now and is becomming slow

to
run.

please help

Dave




Please remove "no.thanks."
and add "blue" in front of yonder to email me.
Sorry for inconvenience but feed up of spam mail




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i retrieve an excel spreadsheet i was working on robbieliam Excel Worksheet Functions 1 May 15th 09 12:21 PM
How do I retrieve an original spreadsheet that was aved over DragonFly Excel Discussion (Misc queries) 1 January 2nd 08 09:50 PM
I lost a spreadsheet, can I retrieve it? Terri... Excel Discussion (Misc queries) 1 February 2nd 06 06:02 PM
How can I retrieve a spreadsheet closed out of (not saved)? claudia Excel Worksheet Functions 1 February 26th 05 09:14 PM
How can I retrieve a spreadsheet closed out of (not saved)? Claudia Excel Worksheet Functions 0 February 26th 05 08:45 PM


All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"