Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2013, 07:05 PM
winter4400 winter4400 is offline List Boxes with Values Windows 7 64bit List Boxes with Values Office 2010 64bit
Novice
List Boxes with Values
 
Join Date: Jan 2013
Posts: 6
winter4400 is on a distinguished road
Default List Boxes with Values

Hello,



I am trying to simplify an employee contract using Word 2010 and hope to get rid of a uniform deduction spreadsheet. It doesnt matter if this can be done in either a list box, or drop menu. I am hoping to choose the Qty and when I choose the Uniform the Total will automatically appear.

Column 1 is "Qty" and has the numbers 1-12

Column 2 is "Uniform Type" and it will list the Uniforms here is an example

Fleece Jacket $34.85ea
Grey T-Shirt $9.25ea
Charcoal Work Pant $27.50ea

Column 3 is "Total" I need this to calculate the Qty x the value of the Uniform Type. i.e If the employee took 2 Grey T-Shirt the total would show up as $18.50
Reply With Quote
  #2  
Old 02-17-2013, 02:07 AM
macropod's Avatar
macropod macropod is online now List Boxes with Values Windows 7 64bit List Boxes with Values Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For an example of how this kind of thing can be done using formfields, see the attachment at: https://www.msofficeforums.com/word-vba/14097-how-link-checkbox-change-nearby-cell-value.html#post39327
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-17-2013, 05:57 AM
winter4400 winter4400 is offline List Boxes with Values Windows 7 64bit List Boxes with Values Office 2010 64bit
Novice
List Boxes with Values
 
Join Date: Jan 2013
Posts: 6
winter4400 is on a distinguished road
Default

That is close Macropod. This is why I posted a new Thread, seems everything I find is close but not right. In your example I would have to know the Item and it's price and manually type it in. What I would like is to pick the Item from a drop down list and it auto-populate the price for the item picked.
Reply With Quote
  #4  
Old 02-18-2013, 02:43 AM
macropod's Avatar
macropod macropod is online now List Boxes with Values Windows 7 64bit List Boxes with Values Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi winter,

It's easy enough to use dropdown formfields to select the items, textbox (or dropdown) formfields for the quantity, and have formula fields calculate the values. The document in the link, naturally enough, was tailored to suit the poster's needs in that thread.

For something closer to your needs, see attached.
Attached Files
File Type: doc FormDemo.doc (39.5 KB, 14 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 02-19-2013, 04:50 AM
winter4400 winter4400 is offline List Boxes with Values Windows 7 64bit List Boxes with Values Office 2010 64bit
Novice
List Boxes with Values
 
Join Date: Jan 2013
Posts: 6
winter4400 is on a distinguished road
Default

Here is what I am trying to do. I think it all works and I will add lines once I get it all figured out but for some reason I cannot get it to total.
Attached Files
File Type: docx Form Issue.docx (24.1 KB, 14 views)
Reply With Quote
  #6  
Old 02-19-2013, 03:14 PM
macropod's Avatar
macropod macropod is online now List Boxes with Values Windows 7 64bit List Boxes with Values Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi winter,

Instead of { =qty1*b5 \# "$#,##0.00;($#,##0.00)" }, your 'total' formula should read {={REF Qty1}*E2 \# "$,0.00"}

You need to use a REF field to retrieve the Qty dropdown's value, with the field braces for it (ie '{ }') created via Ctrl-F9. Your 'b5' reference is also wrong - it refers to row 5 in the 'Item' column. As for your numeric picture switch, there's no reason to provide for negative values and the # characters are only of any benefit for padding out the field when the value is less that 1,000. Even so, that padding doesn't give a character spacing equal to what you get when the missing digits are supplied. If you want to enforce right-alignment, use a tab after the $ symbol in the field code and insert either a right-tab or decimal-tab in the cell(s) concerned.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
List Boxes with Values Generate chart from list of text values knownunknown Excel 6 04-24-2013 01:56 AM
List Boxes with Values Drop Down list with calculations and values winter4400 Word 7 01-16-2013 04:55 AM
List Boxes with Values Assigning Values to content control checkboxes and calculating results creative cathy Word Tables 13 10-07-2012 08:52 PM
List Boxes with Values Perform Calculations using List boxes Jennifer_Falcon Word VBA 6 07-26-2011 10:49 AM
Fields controlled by List box values farfromapro Word 0 02-11-2009 02:19 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft