Hi Dave, Great name, by the way.
Have a look at the attached workbook and see if I have understood you properly... Regards - Dave. > Date: Wed, 27 May 2009 15:28:41 -0700 > Subject: $$Excel-Macros$$ A Macro needed for the task beow > From: davidstev...@gmail.com > To: excel-macros@googlegroups.com > > > Hi, > > I have a spreadsheet that contains a company code in cell A3 to A150. > This company code uniquely identifies a company. These codes ones > assigned are not transferred to another company. What I want to do is > when a user clicks in a cell with the company code I want to reference > its company name. This way the user is not running around looking up > company names that are stored an another excel file . The company > codes are as follows: > > 0010-BBBB > 0010-CCCC > 0013-0000 > 0015-0100 > 0041-WOKS > > So if a user clicks on cell a1 containing 0010-BBBB I want to return > Big Bass Outfitters and if they click in the cell contusing 0010-CCCC > I want to display Canada Water and so on and so forth > > I was thinking about a macro some how adding automatic comments by > looking up the company codes against the company name and inserting > comments. But I am not sure if its a good solution and if it can be > done. > > All suggestions are welcome. > > Please reply here or reply to may email, > > thanks, > > Dave _________________________________________________________________ Looking to change your car this year? Find car news, reviews and more http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---
Book1.xls
Description: MS-Excel spreadsheet