ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Load Value into textbox (https://www.excelbanter.com/excel-programming/398277-load-value-into-textbox.html)

Karen53

Load Value into textbox
 
Hi,

I'm trying to load a value from my sheet into a textbox but multiplied by
100 so the percentage has the correct decimal place. I am having trouble
getting it to work.

Me.txtRentalTax.Value = .Cells(Choice, 8).Value * 100
Me.txtGrossUp.Value = .Cells(Choice, 9).Value * 100

Thanks
--

Karen

Bob Phillips

Load Value into textbox
 
Me.txtRentalTax.Value = Format(.Cells(Choice, 8).Value , "0.00%")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Karen53" wrote in message
...
Hi,

I'm trying to load a value from my sheet into a textbox but multiplied by
100 so the percentage has the correct decimal place. I am having trouble
getting it to work.

Me.txtRentalTax.Value = .Cells(Choice, 8).Value * 100
Me.txtGrossUp.Value = .Cells(Choice, 9).Value * 100

Thanks
--

Karen




Karen53

Load Value into textbox
 
Thanks!
--

Karen


"Bob Phillips" wrote:

Me.txtRentalTax.Value = Format(.Cells(Choice, 8).Value , "0.00%")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Karen53" wrote in message
...
Hi,

I'm trying to load a value from my sheet into a textbox but multiplied by
100 so the percentage has the correct decimal place. I am having trouble
getting it to work.

Me.txtRentalTax.Value = .Cells(Choice, 8).Value * 100
Me.txtGrossUp.Value = .Cells(Choice, 9).Value * 100

Thanks
--

Karen






All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com