#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro Help

Hi All

In a workbook I have a worksheet 1 that looks something like this

A B C
Code Name Position
1 Smith MD
2 Jones Sales
3 Brown R & D
4 Bloggs Driver
etc etc etc

Worksheet 2 is an individual form as below that where I type in the code,
the rest is automatically populated with name and position. There are more
details underneath but the heading of the form is automatically filled!

A B C D
Code Name Position Signature

What I would like to do is be able to click the code number on worksheet 1,
and be taken to worksheet 2 with all the fields populated.

Now I understand how to make a macro for each row on ws1 from a button, that
will copy the code from the A column on ws1, and paste into the code field
on ws2. How can I, if It is possible, be able to click on the code number in
ws1, and do the same task?

Many thanks in advance

Matty




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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


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