+ Reply to Thread
Results 1 to 2 of 2

Need a Submit Button that will move multiple lines of data to a database on another sheet

Hybrid View

shambaughj Need a Submit Button that... 06-20-2013, 04:40 PM
Break_Point Re: Need a Submit Button that... 06-20-2013, 06:05 PM
  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    1

    Need a Submit Button that will move multiple lines of data to a database on another sheet

    I'm looking to add a submit button to my form that transfers the information to the master sheet.

    Data should transfer like so:

    CDIS Lookup -> Master
    A3->A2
    C3->B2
    N3->C2
    T3->D2
    Z3->E2
    AA3->F2
    AB3->G2
    AC3->H2
    AD3->I2
    AE3->J2

    This will be used on a daily basis. The problem is I'm not sure how many lines I need to transfer at a time. It could be anywhere from 2 to 200. So basically I want to make sure all ACTIVE cells are being transferred. Is this even possible?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-27-2012
    Location
    London
    MS-Off Ver
    Excel 2007-2010
    Posts
    59

    Re: Need a Submit Button that will move multiple lines of data to a database on another sh

    Using VBA you can determine the last row of you data set and select the range based on the variable (the last row).

    Determining the last row of your data (Assuming it is in column A):
    LastRowColA = Range("A65536").End(xlUp).Row
    Selecting your range with the variable of the last row:
    Range("A1:A" & LastRowColA).Select
    Break_Point

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