+ Reply to Thread
Results 1 to 6 of 6

TextBoxes and Linked Cells

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    TextBoxes and Linked Cells

    Dear Members
    When using Excell2000 I made use of linked cells, often using the properties window to define them. Now, using Excell 2007 I have not been able to find them. The help system suggests you use "Textbox1.ControlFormat.LinkedCell" for example but this generates an error message saying this method is not available when used in my code. I am sure linked cells must still exist, or there will be an equivalent method. I suppose I could use use something like
    Range("A1").Value= TextBox1.Value
    but this is not an elegant answer especialy if you have a data entry form with 12 textboxes.
    Can anyone point me in the right direction please?
    John

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: TextBoxes and Linked Cells

    What kind of form?

    What kind of TextBoxes?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: TextBoxes and Linked Cells

    If you are talking about a userform, then it is much more elegant to populate the cells using code rather than the linked cell (though that still exists)
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: TextBoxes and Linked Cells

    royUK
    I meant UserForms and Textboxes from the toolbox. Not activex.
    I see that RomperStomper sees it as better to set properties in code. Despite that I still feel that if i have a number of controls on a form it is better to set the basic properties in the properties window to make it easier to get a standard look. Some properties such as LinkedCell are not listed in my Excel2007 properties window so how do I access them?
    John

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: TextBoxes and Linked Cells

    You are, IMO, wrong, but the property you want is the ControlSource. Good luck.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: TextBoxes and Linked Cells

    I agree with RomperStomper. ControlSource may cause problems. What it does is reflect any changes made in the control on the sheet, likewise change the cell & that changes the userform. Data can easily be lost that way

+ 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