+ Reply to Thread
Results 1 to 9 of 9

ActiveX Spin Button LinkedCell Question

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    ActiveX Spin Button LinkedCell Question

    Hello Everyone,

    I am going nuts trying to chance the LinkedCell of my ActiveX spin button to reference a cell on another sheet. In other words, the spin button control is on sheet1 but the cell I want it to change and reference is on sheet2. I keep getting:"Run Time error 9 subscript out of range". Its strange because when I reference a cell on sheet1 where the control resides it works. Help!

    Thanks for the help...

    Moderator's note: Moved from Hello. Question indicates a VBA runtime error so off we go to VBA. --6StringJazzer
    Last edited by 6StringJazzer; 01-20-2014 at 04:51 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2405
    Posts
    25,032

    Re: ActiveX Spin Button LinkedCell Question

    What does your LinkedCell attribute look like? Does it look like "Sheet2!A1"? Or something else?

    I tried this and it should work. If we can't resolve it by looking at how you have set the attribute then it would help to attach your file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: ActiveX Spin Button LinkedCell Question

    In the properties for LinkedCell enter Sheet2!A1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2405
    Posts
    25,032

    Re: ActiveX Spin Button LinkedCell Question

    Right, AlKey is suggesting the same thing--looking at your question again, I am wondering if you have VBA code tied to this control. That particular error would not occur just because you're using a spin button tied to a cell. I suggest you attach the file.

    There are lots of ways that error can occur but most likely you have code that refers to a worksheet that does not exist

    Please Login or Register  to view this content.
    or you have an array that you have exceeded the bounds

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-20-2014
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: ActiveX Spin Button LinkedCell Question

    Thanks for the replies. When I type it in it disappears! Poof. gone. If I enter C6 from the same page, no issue. When I reference Sheet10 (which does exist) it doesn't want to take it. I typed in Sheet10!C6 and as soon as I hit enter it disappears. Like I entered nothing.

    Spin Button.png

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: ActiveX Spin Button LinkedCell Question

    It has to be entered exactly list this: Sheet2!A1

  7. #7
    Registered User
    Join Date
    01-20-2014
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: ActiveX Spin Button LinkedCell Question

    Alkey,


    I am entering like that... See attached...


    Spin Button.png

  8. #8
    Registered User
    Join Date
    01-20-2014
    Location
    LA, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: ActiveX Spin Button LinkedCell Question

    Hey Alkey,

    I tired it on a totally new blank sheet. And the dam thing worked. So there is something between the two sheets preventing them from connecting (linking). None of the sheets are protected This is sooo weird. Thank you for trying to helping. Much appreciated.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: ActiveX Spin Button LinkedCell Question

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. Excel 2007 ActiveX Combobox - LinkedCell automatically change w/ copy/paste
    By jdgonzal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 05:46 PM
  2. Code to change LinkedCell of ActiveX ComboBox
    By ozhunter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2011, 07:10 AM
  3. Replies: 2
    Last Post: 03-12-2008, 06:52 PM
  4. Spin Button:spin cells A7
    By ice in forum Excel General
    Replies: 1
    Last Post: 03-16-2007, 02:23 PM
  5. Replies: 5
    Last Post: 04-23-2006, 08:00 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