Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Find functions

Try using a worksheet function to retrieve the data based on a key.

DestinationRange.Value = WorksheetFunction.DGet(Range("YourDataRange"),
"KeyColumnName", Range("CriteriaRange"))

YourDataRange must include the headers row.
KeyColumnName is the header of the column wich corresponds to the value in
CriteriaRange

Pierre

------------------------------------

"Jonas O" a écrit dans le message de
...

Hi,
I would like to compie a macro which find a searchstring (e.g. value or
text) from one workbook and uses this searchstring to find it in another
workbook (=small database). When finding the desired searchstring, the
macro should select and copy values from the database and paste it into
the first workbook. Is it possible to make such a macro and does anyone
has some guidelines how to do?

Kind regards
Jonas


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply
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
Where do I find the Name Box and Fx functions in Excel? LERT New Users to Excel 5 June 28th 09 10:48 PM
Find min sum from multiple categories and functions Calvin Excel Worksheet Functions 2 November 24th 08 08:32 PM
Find replace in functions J.Mart Excel Discussion (Misc queries) 2 November 18th 07 04:10 AM
Problems with the Right & Find functions beginner here Excel Worksheet Functions 14 July 16th 07 11:20 PM
Combining IF AND & FIND Functions Steve Excel Worksheet Functions 3 March 30th 06 03:10 PM


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

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

About Us

"It's about Microsoft Excel"