+ Reply to Thread
Results 1 to 12 of 12

Excel Command Button Macro to ask for Part # and update another sheet with info

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    Flroida
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel Command Button Macro to ask for Part # and update another sheet with info

    Hello

    I am currently working on a with a list of vendor material item. The two sheets I have are the material log with all the parts available for rent and another sheet with the parts we currently have on site from the vendor. What I am trying to do is create a command button that will ask the user to input the part # it will then select the part # and part name from the material log ask the user to enter the daily cost and how much square footage is on site then enter the information on the next available line on the excel sheet of parts on site in the correct locations on the sheet.

    This is the code i have so far:

    Please Login or Register  to view this content.

    I am not sure how to go further than this.

  2. #2
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Berkeley, CA
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    I think this along the lines that you want:

    Please Login or Register  to view this content.
    Last edited by Cofad; 02-11-2013 at 02:09 PM.
    ------------------------
    W2

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Could you post a copy of your file with a detailed description of what you would like to do? This would make it easier to follow.

  4. #4
    Registered User
    Join Date
    02-08-2013
    Location
    Flroida
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Here is the doc. The description is in the doc.


    20130208 Ulma Formwork Log.xlsx

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Hi dka. Try the attached file. I've made a couple of minor changes to the first sheet. I had to remove the merged cell in A1. Merged cells most often cause problems for Excel and should be avoided if possible. Just double click on the part number and you will be prompted for the additional information. Let me know if this works for you.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-08-2013
    Location
    Flroida
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Thank you Mumps1. This works perfectly. I really appreciate it'

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    It was my pleasure.

  8. #8
    Registered User
    Join Date
    02-08-2013
    Location
    Flroida
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    So I started messing with the code and the data. Add filters to the doc to make it easier to navigate. I also decided to input the Daily Cost and use the macro to pull that data into the other sheet as well. I thought it would be as easy as adding another cell for the range but I am getting a compile error.

    Please Login or Register  to view this content.
    Any ideas?

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Try:
    Please Login or Register  to view this content.

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Sorry, dka. I think that this is what you want. This assumes that you will be entering the daily cost in column C of the Uma material Log. I read your PM and your description was a little different. If this is not what you wanted, let me know and describe in detail how you want to change the macro.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 02-13-2013 at 03:18 PM.

  11. #11
    Registered User
    Join Date
    02-08-2013
    Location
    Flroida
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Thanks Mumps1. I ended up using Vlookup to solve the problem. It worked like a charm.

  12. #12
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Excel Command Button Macro to ask for Part # and update another sheet with info

    Glad you found a solution.

+ Reply to Thread

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