Consulting

Results 1 to 2 of 2

Thread: Can you use variable to change caption on command button

  1. #1

    Can you use variable to change caption on command button

    Hi
    Is there a way of changing the caption value of a command button using a variable value?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master xld's Avatar
    Joined
    Apr 2005
    Posts
    25,145
    Location
    [vba]

    myVar = "OK Button"
    CommandButton1.Caption = myVar
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •