+ Reply to Thread
Results 1 to 5 of 5

Recall the data as it is in the user form to edit and update

  1. #1
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Recall the data as it is in the user form to edit and update

    Dear Experts,

    I need your guidance on the following requirements.

    I have developed a user form called "SVmainForm", which has lots of data entry tool option like, text box, radio button and combo box. It works well and data stored in excel worksheet called "SVReport". Till here the user from works fine.

    Requirement:

    1. I want to edit and update the data. For that, i have just made the duplicate user form called "SVeditForm" (from the original user form, which is used for data entry)
    2. I want to recall the entered data, which stored in excel worksheet should be in the SVeditForm through with one of the criteria called "Report No."
    3. Text box data should be recalled in Text box, Combo box data should be recalled in combo box and Radio button data should be recalled in radio button.
    4. Now, based on the requirement, i will edit and update the data.

    As simply, i want to recall the data as it is in the data entry form.

    Is there any idea? please help me.

    Regards

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Recall the data as it is in the user form to edit and update

    This example will look for a "Report No." match in column A and return its row number. Then populate the textboxes from values in that row.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: Recall the data as it is in the user form to edit and update

    Dear Mr.Alpha,

    Thanks for your reply with the codes. I have modified and applied the codes, which you have suggested. The modified codes have been given below.

    Actually Data should be recalled in combo boxes, Yes, text boxes are also there as well as radio button options are there. The given codes are not recalled the data in combo boxes. (cbtown and cbstate, those are combo boxes)

    Kindly guide me








    Please Login or Register  to view this content.
    Last edited by bala04msw; 07-29-2018 at 01:15 PM.

  4. #4
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: Recall the data as it is in the user form to edit and update

    Dear Alpha,

    Thanks for the code. It really works charm. I did some mistake in the variables and rectified and works fine at all different inputs tools, like tex tbox, combo box and radio button.

    Thanks a lot

  5. #5
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: Recall the data as it is in the user form to edit and update

    Dear Mr. Alpha,

    I think we have missed out "Update Data". Actually We need to update the existing data and save in the same row in the excel worksheet. Could you please help me on this part?

    VBA Code for "Update"

    Regards

+ 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] I create a user form but unable to edit saved data
    By manissinha5 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-06-2016, 01:54 PM
  2. [SOLVED] Copy data from fillable user form to database tab in column format/recall past records
    By johnstevens in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-13-2014, 01:28 PM
  3. User form on initialize to recall last entry from Excel Sheet
    By maip.kewa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 07:16 PM
  4. Replies: 1
    Last Post: 08-28-2013, 05:04 PM
  5. Edit Sheet1 data by using User Form Textbox
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 04:27 AM
  6. Recall function to a User Form
    By shnim1 in forum Excel General
    Replies: 1
    Last Post: 04-12-2006, 02:47 AM
  7. user form update data problem
    By static69 in forum Excel General
    Replies: 1
    Last Post: 02-14-2005, 03:12 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