Pricing update on Userform

Jerrold

New Member
Joined
Mar 4, 2014
Messages
5
I have a userform that shows current pricing we just had a price increase that was a 3.5% increase, and instead of just changing each price one at a time I would like to add a textbox that shows the 3.5% & command button that will update the pricing in the current textboxes.
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
something along the lines of

Dim c As Range, rng
Set rng = Range("a1:a20")
Dim my_val As Double

my_val = InputBox("enter new value")
For Each c In rng
c.Value = c.Value + ((c.Value * my_val) / 100)
Next c
 
Upvote 0
the textbox I am wanting to update is on a userform not a spreadsheet...I think I have to repaint the textbox but not sure how to write the code
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,953
Members
449,198
Latest member
MhammadishaqKhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top