Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing label caption in a Userform to an opterator value


hi guys

i must change the label caption in a userform to a value of an operator
of the main code. That means i would have to bring in an operator from
the main code into the subroutine. I have not been able to solve this
problem

Could anyone tell me if this is possible, and if how does it work

thanks in advance

this is the code for the user form

Public Sub UserForm_Initialize(numcol As Integer)
Spalte500.Caption = numcol
End Sub


--
jumpjump
------------------------------------------------------------------------
jumpjump's Profile: http://www.excelforum.com/member.php...o&userid=26568
View this thread: http://www.excelforum.com/showthread...hreadid=398427

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Changing label caption in a Userform to an opterator value

Another way is to change the caption in your main code and then show the form
eg:

Sub myProc()
Dim numCol As Integer
numCol = 500
UserForm1.Spalte500.Caption = numCol
UserForm1.Show
End Sub

Hope this helps
Rowan

"jumpjump" wrote:


hi guys

i must change the label caption in a userform to a value of an operator
of the main code. That means i would have to bring in an operator from
the main code into the subroutine. I have not been able to solve this
problem

Could anyone tell me if this is possible, and if how does it work

thanks in advance

this is the code for the user form

Public Sub UserForm_Initialize(numcol As Integer)
Spalte500.Caption = numcol
End Sub


--
jumpjump
------------------------------------------------------------------------
jumpjump's Profile: http://www.excelforum.com/member.php...o&userid=26568
View this thread: http://www.excelforum.com/showthread...hreadid=398427


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing label caption in a Userform to an opterator value


thanks a lot for the help

that made my da

--
jumpjum
-----------------------------------------------------------------------
jumpjump's Profile: http://www.excelforum.com/member.php...fo&userid=2656
View this thread: http://www.excelforum.com/showthread.php?threadid=39842

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
Label - Caption not changing Brian Hribek[_2_] Excel Programming 0 October 11th 04 10:02 PM
Label - Caption not changing Brian Hribek Excel Programming 1 October 11th 04 09:19 PM
Userform - Label Caption - How to update from a variable Alan Excel Programming 3 August 2nd 04 04:39 AM
changing the caption of a label Koos Excel Programming 4 October 18th 03 02:36 PM
Label Caption Just Wont Work on UserForm K[_3_] Excel Programming 2 September 15th 03 03:29 PM


All times are GMT +1. The time now is 06: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"