Results 1 to 22 of 22

Have textbox.value populate cells in a certain row and column

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-10-2014
    Location
    Alberta
    MS-Off Ver
    2016
    Posts
    128

    Have textbox.value populate cells in a certain row and column

    I have a formula that doesn't quite seem to work. First I tried to make a formula to match the text in row 4 and then input the text from another box in a row below that. Does it matter if it is merged?

    here is the code so far:

    Private Sub SubmitButton_Click()
    Dim emptyRow As Long
    Dim emptyCol As Long
    Dim Res As Variant
        With Sheet2
            Res = Application.Match(Roomnum.Value, .Rows(4), 0)
                If Not IsError(Res) Then
                    emptyRow = .Cells(Rows.Count, 1).End(xlUp).Row + 1
                Else
                    emptyRow = .Cells(Rows.Count, 1).End(xlUp).Row + 1
                    .Range("C" & emptyRow).Value = Credittxt.Value
                End If
        End With
    End Sub
    Last edited by Templemind; 09-13-2014 at 04:12 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Have a textbox value populate a certain range of cells only
    By Templemind in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2014, 08:02 AM
  2. Populate TextBox from Module prior to opening TextBox
    By Dabbler39 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2013, 05:50 PM
  3. [SOLVED] Auto populate cells in one column based if cells in next column are populated
    By diablo86 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-22-2013, 06:29 AM
  4. Populate a column based on input from a textbox
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 03:39 PM
  5. [SOLVED] UserForm TextBox and ComboBox selections populate SPECIFIC spreadsheet cells
    By ZIXILPLIX in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-23-2010, 02:45 AM

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