+ Reply to Thread
Results 1 to 3 of 3

auto fill a spreadsheet on a userform based on a textbox value

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    auto fill a spreadsheet on a userform based on a textbox value

    Hi i am trying to autofill row and colums on a spreedsheet on a userform based on a worksheet. I can get each cell to return the value but want with long lines of code but want to know if there is a easy way to achieve this.

    Private Sub UserForm_Initialize()
    Me.TextBox1.Value = Sheet49.ComboBox1.Value

    Dim SpreadSheetSearch As Range
    Set SpreadSheetSearch = Sheets("cb").Columns("A").Find(TextBox1.Text)


    Me.Spreadsheet1.Range("b2").Value = Sheets("CB").Range("j" & SpreadSheetSearch.Row).Value ' this is where i want it to fill "c2" with the next column based on the spreadsheetsearch.row

  2. #2
    Forum Contributor
    Join Date
    02-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    275

    Re: auto fill a spreadsheet on a userform based on a textbox value

    Hi

    I'm no expert but I'm sure the expert will agree that a sample will make you question less confusing.

    Do you want to fill the form or the spreadsheet??

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: auto fill a spreadsheet on a userform based on a textbox value

    I want to fill the spreadsheet on the userform.

    CopyWashPlant.xlsm

+ 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