+ Reply to Thread
Results 1 to 6 of 6

spin button: create multiple cell link

  1. #1
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    spin button: create multiple cell link

    spin1.xlsxHi all,

    Would like to create one spin button that can change few cell with one click.

    When I create multiple cell link in the spin button,

    Example: Enter B1, C1, D1 and E1 in the cell link but unacceptable.

    Please refer to attachment for example.

    Tried range also same result.

    Any idea how to make it work.

    It's really safe me a lot of time from clicking multiple spin button.
    Last edited by DavidRoger; 04-23-2014 at 11:03 PM. Reason: attachement

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: spin button: create multiple cell link

    Hi David,

    Instead of trying to link to the spin button, try a formula that references the results of the spin button.

    For example, if spin button 4 is referenced to cell E1, and you want the result also in cell A22, then in cell A22 put the formula:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: spin button: create multiple cell link

    Hi LJMetzger,

    Figure that out but if you use the spin button again the formula will be lose.

    Thank you any way.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: spin button: create multiple cell link

    Hi again,

    I apologize for my original answer not working.

    I think I was able to do what you want with macros and VBA. You will have to save your workbook as a .xlsm file, because .xlsx can't run macros.

    To enable Macros and to Run Macros see the following:
    http://office.microsoft.com/en-us/ex...010031071.aspx
    http://office.microsoft.com/en-us/ex...010014113.aspx
    If help is still needed do a google search for 'youtube excel enable macro' and/or 'youtube excel run macro'.

    To access Visual Basic (VBA) see:
    http://www.ablebits.com/office-addin...a-macro-excel/

    The code I used was actually pretty simple, by referencing the linked cell.
    See the attached workbook which is a working copy.

    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: spin button: create multiple cell link

    Hi,

    Good to see you again. This time it's working and more opt to spin button 4 without *10.

    Thank you a lot.

    May I know what the "Option Explicit" for? It's seen alright when I remove that from vba.

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: spin button: create multiple cell link

    I'm glad that it's working.

    Your code may work without 'Option Explicit', but it is VERY IMPORTANT.

    To prevent typos from ruining days and weeks of work you need 'Option Explicit' at the top of each code module. This forces you to declare every variable. See http://www.cpearson.com/excel/DeclaringVariables.aspx

    Lewis

+ 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. Link spin button to a different cell according to an if statement
    By depastle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2012, 02:51 PM
  2. Link keystokes to spin button? (tallying)
    By scruffy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2012, 08:54 PM
  3. Spin button link to another cell
    By jnick in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-26-2012, 11:38 AM
  4. Spin Button will not link to cell
    By elliotl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2009, 03:10 PM
  5. Spin Button:spin cells A7
    By ice in forum Excel General
    Replies: 1
    Last Post: 03-16-2007, 02:23 PM

Tags for this Thread

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