+ Reply to Thread
Results 1 to 3 of 3

Run Same User Form Again, Paste Values in Next Blank Row

  1. #1
    Registered User
    Join Date
    03-05-2020
    Location
    Ontaroi, Canada
    MS-Off Ver
    2016
    Posts
    2

    Run Same User Form Again, Paste Values in Next Blank Row

    Hi,

    I have a userform in which when I click "save", the values I selected from the userform would paste in the column I specified.

    What I am trying to do is that when I click another button (i.e. called "new service") on the same user form, the same user form would run again and after I select the necessary values on the 2nd user form, it would paste in another cell I specified (the next empty row)


    The attachment is an example of what I want it to look like.
    To explain the attachment more, if I click the "new service" button on my user form, the user form would pop up and I would enter "work" and the other necessary values. Once I click either "new service" again or "save", the values would paste in this case in "A10" since that is the first empty row (there are values up to C9 from the previous selection).

    This is the code I have for pasting the values. "xRow=12" because I want my values to start pasting from row 12, column A from the first user form. Then what I want it to do is when the next user form(s) run, then to paste the values in the next empty row (not in row 12 column A).
    Please Login or Register  to view this content.
    If I can't do this, what do you recommend?

    This would help a lot.

    Thank you!!!
    Attached Images Attached Images
    Last edited by Mithu123; 03-21-2020 at 09:20 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Run Same User Form Again, Paste Values in Next Blank Row

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-05-2020
    Location
    Ontaroi, Canada
    MS-Off Ver
    2016
    Posts
    2

    Re: Run Same User Form Again, Paste Values in Next Blank Row

    Thanks Alan!

    I apologize. This is my first time using the forum so I'm not familiar with the rules. Posting that link helps a bunch!

+ 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. VBA code to open a user form if the user form is located in an addin?
    By bresman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2019, 09:04 AM
  2. Upload inputs from a User Form repeatedly until the user clicks the red X on the Form
    By TheJimmyMcGill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2019, 05:46 PM
  3. Populate text boxes on user form, from combo box on same user form
    By Richardswaim in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 07-03-2016, 09:35 AM
  4. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  5. [SOLVED] Excel vba user form- open directly to user form not worksheet
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-24-2013, 05:07 PM
  6. [SOLVED] Excel user form- If/Then statement outcome to show on user form
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 09:16 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