+ Reply to Thread
Results 1 to 5 of 5

Code to change LinkedCell of ActiveX ComboBox

  1. #1
    Registered User
    Join Date
    06-04-2011
    Location
    NSW Australia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Code to change LinkedCell of ActiveX ComboBox

    Hello

    Can someone help me with some code that will change the Linkedcell of a ComboBox when I want it to. I would like to link it to a button so the LinkedCell won't change unless the button is clicked.

    Current LinkedCell is Sheet1!A1

    Thanks
    Last edited by ozhunter; 06-08-2011 at 07:11 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Code to change LinkedCell of ActiveX ComboBox

    Please Login or Register  to view this content.

    To make it more dynamic:

    Please Login or Register  to view this content.
    Last edited by snb; 06-08-2011 at 06:47 AM.



  3. #3
    Registered User
    Join Date
    06-04-2011
    Location
    NSW Australia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Code to change LinkedCell of ActiveX ComboBox

    Thankyou snb

    I realised as I saw your post that I hadn't fully explained myself.

    I would like it to change to the cell below ie from A1 to A2, and the next time the button is clicked it changes form A2 to A3. I tried offset, but I'm missing something.

    Adam

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Code to change LinkedCell of ActiveX ComboBox

    Here you go:

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by snb; 06-08-2011 at 06:50 AM.

  5. #5
    Registered User
    Join Date
    06-04-2011
    Location
    NSW Australia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Code to change LinkedCell of ActiveX ComboBox

    snb

    You are very good at this stuff. After I put my brain in gear I got your code to work, thank you.

    As my workbook progresses, I'm sure there will be other questions.

    Cheers

    Adam

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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