+ Reply to Thread
Results 1 to 5 of 5

is it possible to link a cell from macro button

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Question is it possible to link a cell from macro button

    Hi all,

    Is it possible to have various buttons in one sheet in excel, and as they're pressed cell A1 in another sheet updates with the names range of each button pressed? If button A was pressed cell A1 would say Button A. If someone pushed Button B, cell A1 would show Button B

    Similar to Linkedcell in properties when inserting something like an activex userform

    Many thanks!!!

  2. #2
    Registered User
    Join Date
    03-19-2014
    Location
    India
    MS-Off Ver
    Excel & VBA - 2007 & 2010
    Posts
    60

    Re: is it possible to link a cell from macro button

    Hi Deanusa,

    Yes, it can be possible, please share your spread sheet so we will have a better idea to complete this task.

    Thanks!
    Moin

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: is it possible to link a cell from macro button

    Hi,

    Assuming you mean an Activex Command button then set the Caption property of the button to 'Button A'. Then in the click event of the button enter

    Please Login or Register  to view this content.
    If you mean another sort of button like a drawing object shape, then do something similar but create a module level macro and with the Assign_Macro option point it to the macro procedure.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: is it possible to link a cell from macro button

    See the attached:


    For Forms buttons
    Attached Files Attached Files
    Gary's Student

  5. #5
    Registered User
    Join Date
    03-19-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: is it possible to link a cell from macro button

    Thanks this works perfectly !!! It was for a shape rather than a command button, but as you say just attach it and done! thanks so much!

+ 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. Replies: 2
    Last Post: 02-03-2013, 06:38 AM
  2. Macro button needed to paste link
    By karobonas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2011, 05:19 AM
  3. [SOLVED] Macro Button Link
    By Benz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2006, 01:40 PM
  4. [SOLVED] how to link a macro to a button on the excel sheet
    By Neo in forum Excel General
    Replies: 1
    Last Post: 06-16-2006, 12:10 PM
  5. Macro link to button gets unassigned
    By routeram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2005, 02:31 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