Results 1 to 22 of 22

Userform Macro to Use Textbox input to Generate blank rows.

Threaded View

  1. #10
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Userform Macro to Use Textbox input to Generate blank rows.

    Holger the first application seems to work as desired. I now am looking to create a hyperlink between the cell the "Textbox" is inserted in and the row generated for it. Ex. "Text4" goes to cell A10 and will generate the 4th row in the sequence. I want the user to be able to click cell A10 and it take them to its respective row. The following is the current code I have so far

    Private Sub SUBMITFORM2_Click()
    
    Dim lngCounter As Long
    
    With Sheets("New Template")
        .Cells(7, 1).Value = Text1.Value 'sends user selection to module
        .Cells(8, 1).Value = Text2.Value
        .Cells(9, 1).Value = Text3.Value
        .Cells(10, 1).Value = Text4.Value
        .Cells(11, 1).Value = Text5.Value
        .Cells(12, 1).Value = Text6.Value
        .Cells(13, 1).Value = Text7.Value
        .Cells(14, 1).Value = Text8.Value
        .Cells(7, 4).Value = Text9.Value
        .Cells(8, 4).Value = Text10.Value
        .Cells(9, 4).Value = Text11.Value
        .Cells(10, 4).Value = Text12.Value
        .Cells(11, 4).Value = Text13.Value
        .Cells(12, 4).Value = Text14.Value
        .Cells(13, 4).Value = Text15.Value
        .Cells(14, 4).Value = Text16.Value
    
      For lngCounter = 1 To 16
        .Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Value = Controls("Text" & lngCounter).Value 'sends user selection to module
      Next lngCounter
    End With
    
    Unload Me
    
    End Sub
    Last edited by jaredmccullough; 03-31-2014 at 06:54 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Pass Value of combobox selected in Userform as input to textbox of other userform
    By Pradeepg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2013, 10:32 AM
  2. input the value of a Combobox and a textbox to a TEXTBOX directly from a userform
    By Gordonhk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2013, 03:25 PM
  3. how to generate serial number on a textbox in userform
    By minionrush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 05:12 AM
  4. Use textbox input and VLookup to update another textbox on same userform
    By gcoug in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2011, 10:39 AM
  5. [SOLVED] checking input on a textbox in userform to be a %
    By Jean-Pierre D via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2005, 07:05 PM

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