Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Label Control

Hello.

I created a user form in Excel Vb. It has about 70 labels. Code should know
which label is triggered by mousemove event. Information is queried from
sheets by using label.name string and the informations are shown in yellow
baloons on the label.

Is it possible to do that easily ?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Label Control

You could make an array of the labels which get update

UpdateLabels = Array("Label1", "Label6","Label8")

for each lbl in UpdateLabels

Set Cntl = UserForm1.Controls(lbl)
Set Lblobj = Cntl.Object
Lblobj.Caption = "Joel"

next lbl

"Murat" wrote:

Hello.

I created a user form in Excel Vb. It has about 70 labels. Code should know
which label is triggered by mousemove event. Information is queried from
sheets by using label.name string and the informations are shown in yellow
baloons on the label.

Is it possible to do that easily ?

Thanks in advance.

Reply
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
How to rotating a Label control in VB 6.0 to, say 90 or -90 degrees Jamie[_13_] Excel Programming 1 July 14th 09 03:14 PM
Cancel Click on label control Adrian Turner Excel Programming 7 February 27th 08 01:53 AM
label control from macro sali Excel Programming 11 September 24th 07 01:21 PM
Is it possible to Link a Label control to a cell ? Ben Excel Worksheet Functions 0 July 9th 07 10:32 PM
Label control - suppress GetFocus Peter Davey Excel Programming 5 July 27th 05 08:57 AM


All times are GMT +1. The time now is 07:32 AM.

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

About Us

"It's about Microsoft Excel"