+ Reply to Thread
Results 1 to 3 of 3

I need a text box to form to point to a cell

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    29

    I need a text box to form to point to a cell

    I am creating an Excel form and I need a fill in the blank field. I need the field to point to a cell.

    I am currently trying to use an ActiveX Text Field, but I cannot make it point to a cell.

    The reason why I do not want to use a cell is because I am using other form controls and it wouldn't look right.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Post Re: I need a text box to form to point to a cell

    Try using a sheet specific macro to copy the contents of your cell into the textbox whenever the sheet is changed.

    Right click on the sheet name at the bottom of excel and select view code

    paste this into the sheet

    modify it to meet your requirement.

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Cells.count > 1 Then Exit Sub

    textbox 1,value = range("A1").value

    exit sub

    To the Moderators. I cannot see how to insert code tags.
    Last edited by mehmetcik; 09-26-2013 at 02:04 PM.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: I need a text box to form to point to a cell

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found [URL="http://www.excelforum.com/misc.php?do=bbcode"]here[/URL

    Edit: I believe that you know that if you don't do this it's a violation of rule#3 of our forum.
    Last edited by Fotis1991; 09-26-2013 at 02:20 PM. Reason: Edit
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Replies: 1
    Last Post: 08-28-2013, 05:04 PM
  2. Export to Text File Starting Cell Point?
    By mfleming in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2011, 02:27 PM
  3. How to reference a text to point a value of the cell.
    By southeast in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2011, 03:38 PM
  4. Starting Point For Form
    By markrennolds in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2010, 05:34 PM
  5. Replies: 2
    Last Post: 05-03-2007, 11:30 AM

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