ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel VBA - Userform Texbox/Scrollbar problem (https://www.excelbanter.com/excel-programming/293644-excel-vba-userform-texbox-scrollbar-problem.html)

thesteelmaker[_5_]

Excel VBA - Userform Texbox/Scrollbar problem
 
I have a texbox that gets its value, on "Initialize", from a scrollbar.

txtNumber = scrNumber

My problem is that i want the value of "scrNumber", on "Initialize", t
be the same as the Max value of column D.

Many thank

--
Message posted from http://www.ExcelForum.com


Frank Kabel

Excel VBA - Userform Texbox/Scrollbar problem
 
Hi
try
scrNumber = application.worksheetfunction.max(activesheet.rang e("D:D"))

--
Regards
Frank Kabel
Frankfurt, Germany

I have a texbox that gets its value, on "Initialize", from a
scrollbar.

txtNumber = scrNumber

My problem is that i want the value of "scrNumber", on "Initialize",
to be the same as the Max value of column D.

Many thanks


---
Message posted from http://www.ExcelForum.com/



thesteelmaker[_8_]

Excel VBA - Userform Texbox/Scrollbar problem
 
Thank you very muc

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 01:25 PM.

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