+ Reply to Thread
Results 1 to 3 of 3

Thread: Textbox Linked Cell

  1. #1
    Registered User
    Join Date
    11-23-2008
    Location
    Australia
    Posts
    5

    Textbox Linked Cell

    I have a userform that has a button that, when pressed, generates a new sheet with a name that is a concatenation of the text found within 4 textboxes on the same userform.

    I have a cell on a spreadsheet ... LookupTables!F2 ... that receives the concatenised name of the new sheet just generated.

    I have another Userform that has a textbox that, when text is entered into it, it needs to send that text to a particular cell in that newly generated sheet.

    example :
    if the newly generated sheet is called 13B1JAN2008DATA, then the textbox would send its text to 13B1JAN2008DATA!E10

    if the newly generated sheet is called 15D20MAY2012DATA, then the textbox would send its text to 15D20MAY2012DATA!E10

    whatever the new sheet is called, its name will be found in LookupTables!F2, and the text needs to be sent to cell E10 of whatever that new sheet is called.

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247
    Worksheets(Worksheets("LookupTables").Range("F2").Value).Range("E10").Value = Userform2.Textbox1.Text

  3. #3
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010
    Jammoca,

    Welcome to the forum.

    Please read the forum rules below and then add the link to the other excel forum where you have also posted this question.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0