Results 1 to 2 of 2

Userform transferring data to sheet in a specific row

Threaded View

  1. #1
    Registered User
    Join Date
    07-03-2019
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    1

    Userform transferring data to sheet in a specific row

    i want ot transfer data from a user form to a sheet but in specific row select from combobox value. with this code i didn't get any error nor data to sheet
    here is the code i am using but no progress.

    Private Sub CommandButton1_Click()
    Worksheets("EOM").Activate
    Exit Sub
    Worksheets(TargetRow).Activate
    If ActiveSheet.Cells(TargetRow, 1) = ComboBox1.Value Then
    'copy data to ActiveCells
    ActiveSheet.Cells(TargetRow, 2).Value = TextBox1.Value
    ActiveSheet.Cells(TargetRow, 3).Value = TextBox2.Value
    ActiveSheet.Cells(TargetRow, 4).Value = TextBox3.Value
    ActiveSheet.Cells(TargetRow, 5).Value = TextBox4.Value
    ActiveSheet.Cells(TargetRow, 6).Value = TextBox5.Value
    ActiveSheet.Cells(TargetRow, 7).Value = TextBox6.Value
    ActiveSheet.Cells(TargetRow, 8).Value = TextBox7.Value
    ActiveSheet.Cells(TargetRow, 9).Value = TextBox8.Value
    ActiveSheet.Cells(TargetRow, 10).Value = TextBox9.Value
    End If
    thanks for your help
    Last edited by usmanishfaq2009; 07-03-2019 at 10:00 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Decimal when transferring data to userform
    By rakotonirinas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-31-2019, 06:04 PM
  2. Transferring data from userform to specific cells
    By Flexecel22! in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2016, 02:11 AM
  3. [SOLVED] Transferring specific data from several spreadsheets into one sheet, based on the values.
    By jbrooks1988 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 01-11-2016, 09:01 AM
  4. [SOLVED] Transferring specific data from several spreadsheets into one sheet, based on the values.
    By jbrooks1988 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2016, 10:59 AM
  5. Replies: 9
    Last Post: 12-11-2013, 09:35 AM
  6. [SOLVED] Re :Userform Data not Transferring to Worksheet
    By Janto724 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2013, 10:57 AM
  7. UserForm transferring data
    By mariapata1974 in forum Excel General
    Replies: 8
    Last Post: 03-28-2010, 11:18 AM

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.6.0 RC 1