Results 1 to 19 of 19

Auto execute a macro to trigger when text is written in a cell

Threaded View

mhickey Auto execute a macro to... 03-01-2012, 07:13 PM
JapanDave Re: Auto execute a macro to... 03-01-2012, 07:29 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 04:40 PM
mhickey Re: Auto execute a macro to... 03-02-2012, 11:05 AM
jaslake Re: Auto execute a macro to... 03-02-2012, 11:29 AM
mhickey Re: Auto execute a macro to... 03-02-2012, 11:45 AM
jaslake Re: Auto execute a macro to... 03-02-2012, 12:13 PM
mhickey Re: Auto execute a macro to... 03-02-2012, 12:38 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 12:48 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 01:44 PM
mhickey Re: Auto execute a macro to... 03-02-2012, 02:13 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 02:18 PM
mhickey Re: Auto execute a macro to... 03-02-2012, 02:25 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 02:36 PM
mhickey Re: Auto execute a macro to... 03-02-2012, 02:42 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 03:00 PM
Internoob2 Re: Auto execute a macro to... 03-02-2012, 04:52 PM
jaslake Re: Auto execute a macro to... 03-02-2012, 04:56 PM
mhickey Re: Auto execute a macro to... 03-02-2012, 03:52 PM
  1. #1
    Registered User
    Join Date
    03-01-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Auto execute a macro to trigger when text is written in a cell

    Hi there,
    My company is using a quote sheet in which you input quantity of an item, the stock code of that item a description (measurements) and the price all in different columns. It calculates the quantity and price of the items and gives you an extended price in another column, also giving a total at the bottom including taxes, etc.

    This is all good, but there are a million stock codes and I'd like to streamline it by adding the description and the price automatically if the stock code is inserted into it's given cell. This is what I did:

    Sub COMPANYPRODUCT()

    Select Case Range("B19").Value

    Case "XL104"

    Range("C19").Value = "AN ITEM!"
    Range("D19").Value = "$128"

    Case "XL102"

    etc.

    I want to make it automatically add that price to the price column, and let the qty/price columns take care of the extending of that price.

    Does anyone out there know how I can automatically set this up so that anyone can type any stock code into the stock code cells in that entire column and it will bring up the description and price of that item? I also need it to happen automatically everytime Excel is opened. I have every stock code written in VBE with description and price as shown above so I hope I'm on the right track, it certainly took a while!!!

    Any questions, let me know but I'm stuck! Any help is verryy much appreciated!!!!
    Last edited by mhickey; 03-05-2012 at 02:06 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1