+ Reply to Thread
Results 1 to 3 of 3

Need Userform to Write to Multiple Sheets with Different Offset Criteria

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    DFW, Texas
    MS-Off Ver
    Office 2013
    Posts
    8

    Need Userform to Write to Multiple Sheets with Different Offset Criteria

    Hi all,

    I've been searching around for some help on this for a while but haven't come up with anything yet that is working. I currently have a userform set to enter data on potential business partners for our sales team into the next available row on one worksheet. However, I am looking to further automate the workbook by entering this data not only into the primary table, but also into a separate sheet in the same workbook that is using dynamic ranges to add to, sort, and repopulate a combobox on a separate userform showing appointments with existing business partners (as the new partners would be after being entered originally).

    That's a rather long-winded explanation of the intent, and the functionality of all but one of these pieces is already worked out. The wall I'm hitting (and I'm sure it's one of my own making) is that I can write to one worksheet in a next available row format--as intended, since each entry must be placed on its own unique row regardless of which userform it's coming from--but I cannot get the form to write to a separate worksheet selecting the next available cell in a column. The reason the second worksheet must be written by column is that we have different numbers of partners in separate regions, and each region has (by necessity of size) its own column.

    I had intended to enter data uniformly in the first worksheet on the next available row regardless of region. The entry on the second worksheet is to be determined by the value of AreaOptionButton1 (True goes to the next available cell in column A), AreaOptionButton2 (True goes to the next available cell in column B), and AreaOptionButton3 (True goes to the next available cell in column C).

    The functioning code I currently have for the first worksheet is as follows:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated (and your patience in reading through this rambling request is already very appreciated as well). I'm just annoyed to have come so far in this and then to hit a wall on something that should be so simple.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Need Userform to Write to Multiple Sheets with Different Offset Criteria

    Hi,

    Put this new sub code in your userform :

    Please Login or Register  to view this content.
    Then you can call this sub whenever you want to put a new value to other worksheet, for example :

    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    DFW, Texas
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Need Userform to Write to Multiple Sheets with Different Offset Criteria

    Perfect, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Search for multiple rows from multiple sheets by criteria & show result in userform
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2014, 11:29 AM
  2. [SOLVED] write to 2 sheets from userform
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-20-2014, 12:24 AM
  3. [SOLVED] Lookup with multiple criteria and offset
    By sasindiv in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-14-2013, 10:17 PM
  4. With and End with, Offset Multiple sheets
    By Crebsington in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2011, 10:41 PM
  5. how to write on multiple sheets ?
    By legolas in forum Excel General
    Replies: 3
    Last Post: 10-06-2009, 03:22 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