+ Reply to Thread
Results 1 to 5 of 5

Linked Cell for ActiveX Checkbox via VBA

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

    Linked Cell for ActiveX Checkbox via VBA

    I am trying to insert an ActiveX Checkbox into a worksheet. Have finally figured out many things on how to do this, however am stumped on getting the “Linked Cell” to work without a “Run-time error ‘438’: Object doesn’t support this property or method” The code between the asterisks:
    “.LinkedCell = LC.Address”

    seems to cause the error. I have tried many other versions from websites all over:


    '.LinkedCell = Cells(r + 1, 26).Address
    '.Placement = xlMove
    '.LinkedCell = LC.Offset(0, -8).Address
    '.LinkedCell = LC.Address
    '.LinkedCell = .TopLeftCell.Offset(0, lCol).Address
    '.LinkedCell = Cells(r + 1, 26).Address
    '.LinkedCell = ActiveSheet.Range("Z" & (r + 1))

    None seem to work.
    I would appreciate any help anyone could give me. Would also like to change the name to "Checkbox_" & (r+1), if that is possible, however I get a similar error if I try to use .Name:="Checkbox_" & (r+1)

    Current Code is:

    Please Login or Register  to view this content.
    Thanks in advance,

    Papa Newch
    Last edited by Papa Newch; 11-05-2014 at 05:05 PM. Reason: Added Code Tags - Sorry about the rookie mistake

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Linked Cell for ActiveX Checkbox via VBA

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-30-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Linked Cell for ActiveX Checkbox via VBA

    Watersev,

    Thanks for the reply. Unfortunately, I replaced ".LinkedCell = LC.Address" with your suggestion, "oleObj.LinkedCell = LC.Address" and still got the same error. Everything else works fine with the exception of the error and that there is no "LinkedCell" in properties.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Linked Cell for ActiveX Checkbox via VBA

    This works OK for me in Excel 2007:

    Please Login or Register  to view this content.

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

    Re: Linked Cell for ActiveX Checkbox via VBA

    My bad, I was using the suggestion in a wrong way, Inside of the With Statement. This works perfectly, Thanks to all!!!

+ 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. Lock cell linked to checkbox when checkbox is ticked
    By simeony003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 10:08 AM
  2. Using ActiveX CheckBox Control to make a cell change colour and clear values
    By drmit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2012, 04:18 AM
  3. [SOLVED] ComboBox Activex Linked Cell displaying numbers
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2012, 12:31 PM
  4. Replies: 0
    Last Post: 05-04-2005, 06:06 PM
  5. Linked Cell Property In Activex controls
    By KG in forum Excel General
    Replies: 4
    Last Post: 02-26-2005, 07:06 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