Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to write a macro to do...

I am new to Excel and am assisting someone in doing this task.

User either enter a value or choose it from a drop-down list (Site 1 Name).
With this value, access another
Excel spread sheet to find this value then populate the previous Excel
spreadsheet with
values from the various columns.

For example, user will select HDO094, on the destination spreadsheet. The
marcro will go to the
source spreadsheet locate HDO094 then update the destination spreadsheet with
the Latitude and
Antenna Height information.

Example of the source spreadsheet (second).

Site 1 Site 1 Site1
Name Latitude Antenna Height
HDO094 18.38.57.20:N 42

I appreciate any help with this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default How to write a macro to do...

I don't think you need VBA. As long as both books are open "VLOOKUP"
should work
A2 = SearchText
B2 = =VLOOKUP($A$2,[SourceBook]Sheet1!$A$2:$C$40,2)
C3 = =VLOOKUP($A$2,[SourceBook]Sheet1!$A$2:$C$40,3)
HTH

Die_Another_Day
marg wrote:
I am new to Excel and am assisting someone in doing this task.

User either enter a value or choose it from a drop-down list (Site 1 Name).
With this value, access another
Excel spread sheet to find this value then populate the previous Excel
spreadsheet with
values from the various columns.

For example, user will select HDO094, on the destination spreadsheet. The
marcro will go to the
source spreadsheet locate HDO094 then update the destination spreadsheet with
the Latitude and
Antenna Height information.

Example of the source spreadsheet (second).

Site 1 Site 1 Site1
Name Latitude Antenna Height
HDO094 18.38.57.20:N 42

I appreciate any help with this.


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 to write a macro JStiehl Excel Discussion (Misc queries) 4 August 11th 08 10:08 PM
Write a macro dasmithjones Excel Programming 8 January 20th 06 08:10 PM
HELP!! can't write necessary macro... beb Excel Programming 4 September 2nd 05 01:37 PM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
Q: how can I write this macro? JIM.H. Excel Discussion (Misc queries) 6 May 30th 05 11:47 PM


All times are GMT +1. The time now is 06:53 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"