+ Reply to Thread
Results 1 to 6 of 6

Change Userform captions individually using a rage VBA code

  1. #1
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    Change Userform captions individually using a rage VBA code

    Hi all,

    I have a code whereby a userforms checkbox captions values are set to be the value in a specific cell, for around 20 different check boxes.

    The following code does what I need, but on an individual level, whereas I was wanting a type of range code so one code can cover all check boxes individually.

    Here's my current code:

    Please Login or Register  to view this content.
    I don't believe the 'check box visible true' code is required, but is there a way I can code the above to effect a range of cells and captions?

    Just for confirmation, Checkbox1's caption must be cell A2, checkbox2's caption must be referenced to cell A3 and so on.

    Hoping there's a way to do this to avoid writing individual conditional coding.

    Thank you very much!

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Change Userform captions individually using a rage VBA code

    Hi CheekyDevil (cute name),

    Welcome to the forum!!

    As long as there's a checkbox for every row on data in Col. A of the Deals tab, this should do the job:

    Please Login or Register  to view this content.
    Regards,

    Robert
    Last edited by Trebor76; 11-17-2017 at 12:15 AM.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    Re: Change Userform captions individually using a rage VBA code

    Hi Robert,

    Thank you very much for such a quick reply! Haha name has been my gamer tag for years now, first time I've heard cute though thanks haha.

    That code seems to be working perfectly, just looks like I'll have to move the other rows of data to be under column A, but otherwise a perfect solution!

    Again amazing experience, thank you very much for making this so simple and efficent! I really appreciate you replying so fast!

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Change Userform captions individually using a rage VBA code

    just looks like I'll have to move the other rows of data to be under column A, but otherwise a perfect solution!
    But in your original post you said "Checkbox1's caption must be cell A2, checkbox2's caption must be referenced to cell A3 and so on."

    As long as you've got a solution that's working that's the main thing. If you can mark the thread as solved (refer the link in my signature if you're not sure how) that would be great.

    Thanks,

    Robert

  5. #5
    Registered User
    Join Date
    08-17-2016
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    8

    Re: Change Userform captions individually using a rage VBA code

    Haha Oh sorry about that, yes that is the case, however currently I have 3 rows of different deals on the sheet. I can amend the code to relate to each column for the checkbox captions That should be easy with your layout and my basic understanding of VBA

    cannot thank you enough for the assistance, and absolutely happy to mark as resolved Your a legend mate

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Change Userform captions individually using a rage VBA code

    Great, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Button Array - Change Captions
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2017, 05:16 PM
  2. [SOLVED] Code for multiple cells, but have the cell values change individually
    By neonhorizon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2017, 03:55 PM
  3. [SOLVED] Updating Userform Captions via Module
    By BobbyW in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-12-2015, 11:47 AM
  4. [SOLVED] Counting 2 label captions on userform
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2015, 02:49 AM
  5. Dynamically change the captions on a userform to cell value.
    By leonforrester in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2013, 09:26 AM
  6. Replies: 3
    Last Post: 06-20-2013, 11:10 AM
  7. Userform Captions
    By Greg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2006, 02:30 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1