+ Reply to Thread
Results 1 to 2 of 2

Text box linked to excel

  1. #1
    Registered User
    Join Date
    07-14-2005
    Posts
    14

    Text box linked to excel

    Hello fellow Excel-ers!!

    What is the best way to link a text box in a VB form to a cell in an excel spreadsheet:

    I have a userform with an adresse of a property ( street name, city...) I want the user to only modify the data in the user form but I want cells in excel to always be updated automatically.

    What is the best strategy??

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    09-16-2004
    Posts
    100
    Have a button on the userform, and code along the lines of

    Private Sub Userbutton1_click()

    Worksheets("<name of worksheet>").cells(<cell where you want data to be>) = Textbox1.value

    etc.

    Quote Originally Posted by krhyme
    Hello fellow Excel-ers!!

    What is the best way to link a text box in a VB form to a cell in an excel spreadsheet:

    I have a userform with an adresse of a property ( street name, city...) I want the user to only modify the data in the user form but I want cells in excel to always be updated automatically.

    What is the best strategy??

    Thanks in advance!

+ 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