+ Reply to Thread
Results 1 to 6 of 6

To register data from userform

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    To register data from userform

    Hi,

    I have a code as you can see in the attached file. I have tryed to modify this to work as I want, but I failed and need help.
    When opening the worksheet, there is only one command button. This will open a userform where I want to save the data from row 18. next time in row 19.

    I now you people in here are superb, so hopefully somebody will help me solv this.

    Thanks in advance.


    Best regards
    Øystein
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: To register data from userform

    You have basically got it right when looking for Lastrow, but you cannot get the Offset + 2 otherwise you will end up with every second row blank. In this situation, the Offset must be +1

    The simplest thing to do is change the offset in the code and then move the text in A16 down a row if you must start in row 18 or simply just let the edited code start in row 17.

    If you really do want to start in 18 and keep the heading in Row 16 then a further calculation using LastRow
    Please Login or Register  to view this content.
    ... but you must change Offset + 2 to Offset + 1 whatever you do.

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: To register data from userform

    Thanks for youre reply,

    I need to have the space between row 16 and 18, so that has to stay where it is. I cant see anywhere in the code were it says offset + 2.
    I appreciate your help, but I still cant figure this out.

    Regards
    Øystein

  4. #4
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: To register data from userform

    Sorry, talking through my hat there. Mixed up with something I was doing myself.

    You mentioned you need the blank row between 16 & 18 so just add that 1 line of extra code after you find LastRow. All it does is check what row has been determined to be LastRow; if 17 (no data in the list) then it'll adjust that to 18. Next time around, it'll calculate LastRow as 19 and just continue from there.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: To register data from userform

    How about:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  6. #6
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: To register data from userform

    Thanks for great help,

    This solved it, but I have added some text under for calculation, so I have to continue to work with this code to make it perfect.
    I will make a new post to solv this next challenge

    Thanks again.


    Regards
    Øystein

+ 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] Register data from InputBox
    By acolbrantNMBS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2019, 05:40 AM
  2. register data to another sheet
    By Ibo in forum Excel General
    Replies: 2
    Last Post: 02-17-2018, 03:47 PM
  3. Pulling in data from a register
    By t.groves in forum Excel General
    Replies: 3
    Last Post: 08-05-2016, 05:50 AM
  4. key tag register on a worksheet using a userform
    By MrGuard2015 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2015, 01:42 PM
  5. Data Function For Register
    By stephenwalter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2013, 06:51 AM
  6. Data Entry Function For Hire Register
    By stephenwalter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 05:45 AM
  7. [SOLVED] Register data from userform
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2012, 04:41 PM

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