+ Reply to Thread
Results 1 to 5 of 5

How to Entry Data to Chosen Active Cell from User Form

  1. #1
    Registered User
    Join Date
    01-07-2023
    Location
    Indonesia
    MS-Off Ver
    Microsoft 365
    Posts
    5

    How to Entry Data to Chosen Active Cell from User Form

    Hello, please help me because i am still very new to VBA and Macros.

    Is it possible that we can select the Active Cell to be our starting cell (idk if that's even a word) everytime we want to entry data by Userform?
    In the file I attached below, I have a Multiple Page Userform (Userform 2 in VBA). The pages have identical five text boxes and some command buttons. What I want to do is that every time I entry data from the first page of the Multiple Page Userform, it will be written on column N-P, R, and S but in any choosen row that i want. the same goes with page 2 but to column T-V, X, and Y.

    I imagine I can click on the specific cell to be the starting cell first, and then run the userform, and when i click save it will be recorded like what i just explained above. but i don't know if it's possible or not.

    I am sorry I only can provide you with the code and some pictures of the worksheet and userform because my file is too large.
    Your help will be greatly appreciated because i need this to make my 9-5 job a lot easier.

    Thank you.
    Attached Files Attached Files
    Last edited by amirah1479; 01-16-2023 at 09:38 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to Entry Data to Chosen Active Cell from User Form

    Assuming the "starting cell" is on row 10, you want the first record to save to row 10 then the next one to 11 and the next to 12 etc?
    Or would you close the form each time and select a new row then save the data to that one?

    If the first scenario above is correct then try the code below:
    Please Login or Register  to view this content.
    BSB
    Last edited by BadlySpelledBuoy; 01-07-2023 at 03:43 PM.

  3. #3
    Registered User
    Join Date
    01-07-2023
    Location
    Indonesia
    MS-Off Ver
    Microsoft 365
    Posts
    5
    Hello, thank you so much for the reply. the scenario that i want is the second one, where I close the form each time and select a new row then save the data to that one. is it possible? Thank you

    Quote Originally Posted by BadlySpelledBuoy View Post
    Assuming the "starting cell" is on row 10, you want the first record to save to row 10 then the next one to 11 and the next to 12 etc?
    Or would you close the form each time and select a new row then save the data to that one?

    If the first scenario above is correct then try the code below:
    Please Login or Register  to view this content.
    BSB

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: How to Entry Data to Chosen Active Cell from User Form

    In that case, give this a try:
    Please Login or Register  to view this content.
    BSB

  5. #5
    Registered User
    Join Date
    01-07-2023
    Location
    Indonesia
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: How to Entry Data to Chosen Active Cell from User Form

    Hi, i am so sorry i forgot to reply to this. Your code works perfectly. thank you so much for the help!

+ 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. User form Data Entry Help VBA
    By yates1_99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2015, 01:14 AM
  2. User Form Data Entry
    By caltman242 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2015, 04:36 AM
  3. Msg box based on cell value from user form entry
    By lacey0519 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2014, 10:42 AM
  4. I need to make data entry user form
    By gunatilake.dayan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2014, 10:35 AM
  5. [SOLVED] A user form that shows cells from a row chosen by combo box
    By KAPearson in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2012, 06:08 AM
  6. User Form for Data Entry In Excel
    By tariqnaz2005 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2009, 09:40 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