+ Reply to Thread
Results 1 to 3 of 3

Userform to paste next empty row in current sheet

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Userform to paste next empty row in current sheet

    I have a workbook that has multiple copies of the same data entry spreadsheet in different tabs labeled for each month of the year. Basically 12 tabs, each exactly alike just named differently according to the month. Depending on what month it is, the user will select the appropriate sheet and enter data using a userform. There is a button on each sheet at the top that accesses the userform. The code I have is

    Please Login or Register  to view this content.
    This code only works for sheet 1, which is named January. How can I modify code to use it on any sheet that I happen to be on and paste the data into that respective sheet. For instance, if I'm on the March sheet and using the Userform to enter data then I want it to paste in the last unused row in March. Right now the userform only works if I'm on the January tab even though it still opens up on all the other tabs. Help would be very appreciated.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Userform to paste next empty row in current sheet

    Good evening RaydenUK

    Use ActiveSheet, thus :

    Please Login or Register  to view this content.
    HTH

    DominicB

  3. #3
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Userform to paste next empty row in current sheet

    Wow I got that to work, thank you again.
    Last edited by RaydenUK; 02-03-2015 at 04:45 PM.

+ 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] VBA - Macro issue copy/paste line other sheet + duplicate current sheet
    By vcourbiere in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-17-2014, 12:06 PM
  2. [SOLVED] Copy And Paste on Another Sheet ( next time paste data from empty row )
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2014, 02:29 AM
  3. Add userform data into first empty row on sheet
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 6
    Last Post: 12-14-2013, 10:03 PM
  4. Print current records from userform on sheet
    By swiftrain in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-18-2013, 09:17 AM
  5. Copy Range and paste in an empty row below. Enter data via userform
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2013, 08:25 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