Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tim
 
Posts: n/a
Default Run macro to find names on seperate workbook, then add info from t


I have a report that needs data from another workbook to be put against the
names of people.

The names on my report are always the same and in the same order, but the
other workbook is updated each month, and the names will be in a different
order. From the second file i need three of the cells copying over to my
workbook, and i would like this to be done automatrically as there are about
150 names.

If i run a macroo to find the names, and then select he cells on that line,
it just selects the cell location, and when i do the next months it picks up
someone elses info as the cell location for that name had no changed.

Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Rebecca
 
Posts: n/a
Default Run macro to find names on seperate workbook, then add info from t

Use the function VLookup to do this. In the first of the 4 fields in the
VLookup box, highlight the cell from the first worksheet that you want to
update (the name). In the second box, choose the range from the other
worksheet (make sure that the name that you want to look up is the first
column in that range). In the third box of VLookup, put the number of the
column after the name that you want to be in the other cell on the first
spreadsheet. In other words, if you have the name and then the address and
then the phone number and then the customer number and you want the address
in the cell which you are doing, then the number would be 2. The last box of
the VLookup is always FALSE.

"Tim" wrote:


I have a report that needs data from another workbook to be put against the
names of people.

The names on my report are always the same and in the same order, but the
other workbook is updated each month, and the names will be in a different
order. From the second file i need three of the cells copying over to my
workbook, and i would like this to be done automatrically as there are about
150 names.

If i run a macroo to find the names, and then select he cells on that line,
it just selects the cell location, and when i do the next months it picks up
someone elses info as the cell location for that name had no changed.

Please help.

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
how do I find names in a workbook full of names aj Excel Discussion (Misc queries) 1 January 19th 06 09:01 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Find & Replace in VB macro JackC Excel Discussion (Misc queries) 1 August 24th 05 09:22 PM
Issuing macro in workbook from separate workbook Nigel Excel Discussion (Misc queries) 1 May 16th 05 05:46 PM
How can I find the common names in two columns of names? hako Excel Discussion (Misc queries) 2 December 8th 04 01:59 AM


All times are GMT +1. The time now is 11:32 PM.

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"