+ Reply to Thread
Results 1 to 6 of 6

Cells value -> Caption CommandButtons

  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Cells value -> Caption CommandButtons

    Hi,
    In Sheet1, many ActiveX Control CommandButtons are living in Column "L".
    When I import some data, I'd like to have the captions of the CommandButtons the cells value where they are.
    What I use now is:
    for clear contents
    Please Login or Register  to view this content.
    and for captions:
    Please Login or Register  to view this content.
    Is there any way to have the same resulrt reducing this amount of lines?

    Thank you for your support!
    Cheers
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Cells value -> Caption CommandButtons

    as you have not uploaded your workbook i have put a simple looping demo in the workbook_open event of the attached file.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Cells value -> Caption CommandButtons

    Hi torachan,
    Thank you!
    it's highlighted in yellow the below line
    Please Login or Register  to view this content.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Cells value -> Caption CommandButtons

    Strange ! , upload the file that gives the fault.

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Cells value -> Caption CommandButtons

    Hi,
    I am sorry the my late response!
    Well, my fault! Your solution is working like a charm!

    Thanks a lot for your support!
    Cheers G

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Cells value -> Caption CommandButtons

    thanks for the feedback and added rep point - glad to have helped.

+ 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] Sorting CommandButtons
    By ikkuh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-08-2013, 02:07 AM
  2. [SOLVED] Changing the Caption of CommandButtons
    By OberonViking in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-07-2013, 11:55 AM
  3. Different behaviour of CommandButtons
    By Kropi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2012, 12:18 PM
  4. [SOLVED] Is it possible to do a comm.button with scrolling caption /changing caption?
    By Lkivagten in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2012, 08:10 AM
  5. How to copy commandbuttons
    By leonidas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2006, 10:10 AM
  6. How to reference win.caption, when caption changes
    By Paul987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2006, 12:09 PM
  7. CommandButtons
    By Mats Samson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2006, 10:20 AM

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