ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Populating a label box (https://www.excelbanter.com/excel-programming/301621-populating-label-box.html)

Nigel Bennett

Populating a label box
 

Another quick question, I want to populate a label box with a value
after selecting from a combo box, the values are in 2 cells, I tried
this but got an error

brand.Label1 = Range("i2") & "-" & Range("k2")

error is object required

any ideas?

Nigel Bennett

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Tom Ogilvy

Populating a label box
 
brand.Label1.Caption = Range("i2") & "-" & Range("k2")

--
Regards,
Tom Ogilvy

"Nigel Bennett" wrote in message
...

Another quick question, I want to populate a label box with a value
after selecting from a combo box, the values are in 2 cells, I tried
this but got an error

brand.Label1 = Range("i2") & "-" & Range("k2")

error is object required

any ideas?

Nigel Bennett

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!





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

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