LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Populate User Form Text Box from Worksheet?

I have a data sheet, "Sheet1"

A B C D E F G
mon Tue Wed Thu Fri Sat Sun
3 5 6 5 8 10 12

The numbers in row 2 are averages. They are different for each day of the
week. They change daily based on data input by the user.

I have a User Form. It has the following controls:

1. A combo box, with the 7 days of the week; Monday through Sunday. The
user selects one of the 7 days.
2. A "buffer" text box. I have it set to initialize with the value 0.10
3. An "Order" text box. I would like it to initially populate with the
appropriate value (based on the selected day of the week) that is contained
in Sheet1, row 2, increased by the number in the "buffer" box, rounded up to
the nearest whole number.

For example, if the user selects "Wednesday" from the Combo box, I would
like the "Order" box to initialize with the value 7. [6+(0.10*6)]. The
value must always round up. If the user selected Sunday, then the "Order"
box should populate with the value 14 -- [12+(0.10*12), rounded up]

How do I do this?

Also, if the user changed the 'buffer' number, how would I get the order to
recalculate?

Please advise if clarification is needed. Otherwise thank you.

 
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
Use VLOOKUP to populate text box on form Greg Snidow Excel Programming 8 September 2nd 09 02:38 PM
User Form Text Box - auto delete prompt text [email protected] Excel Programming 2 July 31st 08 03:18 PM
populate cell on worksheet 2 if text is red on worksheet 1 SCrowley Excel Worksheet Functions 14 May 15th 07 09:28 PM
User form caption automatically populate with excel file name Steve Excel Programming 2 October 17th 06 11:44 PM
Populate Combobox in VBA form from worksheet - Tricky Xispo[_9_] Excel Programming 1 November 16th 04 02:34 AM


All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"