+ Reply to Thread
Results 1 to 3 of 3

Edit Data Previously Entered Through Userform

  1. #1
    Registered User
    Join Date
    07-08-2015
    Location
    Richmond, Virginia
    MS-Off Ver
    Office 13
    Posts
    37

    Edit Data Previously Entered Through Userform

    I've tried posting here before and looking all through the internet but can't find a solution, mainly because I cannot upload my workbook. I can only post my code, which is shown below. What I have right now is a userform that opens when double clicking a persons name. In the userform, the user selects an event from a combo box, enters the date that they arrive (mm/dd/yyyy) in a text box and enters the date they leave (mm/dd/yyyy) in a text box. When they click SAVE, the block of days they have entered will be highlighted in a color based on the event (red for event1, blue for event 2, etc.). What I would like to do is be able to double click any one of the days in that block to open the userform with the data that the user entered, be able to edit it, and overwrite the incorrect info (for example someone selects event1 from 09/01/2015 - 09/05/2015, but then realizes they will be gone to event1 from 09/01/2015 - 09/08/2015 so by double clicking on one of the days in the original range, the userform opens with the data already entered but can be changed to the updated dates and the changes made will be shown on the calendar). Please someone help, this is really the only thing I have left to do with this worksheet but I can't find anyone that can understand what I need without seeing the workbook.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Edit Data Previously Entered Through Userform

    use following code in userform

    Please Login or Register  to view this content.
    And call macro using following code:

    Please Login or Register  to view this content.
    To get existing values in form select range for which you need to change dates, & call userform & execute range edit..

    Check attachment for clarity.. Select range H8 to K8 & click on blue button to call macro, you can call macro from worksheet change event, sheet before double click method too..

    Cheers!!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-08-2015
    Location
    Richmond, Virginia
    MS-Off Ver
    Office 13
    Posts
    37

    Re: Edit Data Previously Entered Through Userform

    Thank you so much it worked perfectly. I replaced the userform you had with the one I've been using but it does the same thing. I really appreciate it.

+ 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] Information from userform overwriting data previously entered by same userform
    By ciresuark in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-20-2015, 02:10 PM
  2. Editing Macro to Not Override Previously Entered Data
    By gswj93 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-08-2014, 12:51 AM
  3. Replies: 4
    Last Post: 04-28-2014, 07:24 PM
  4. Populating VBA userform and Fetch previously entered data edit and make new entry
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-07-2013, 11:59 AM
  5. Open a excel userform with values previously entered by user using VBA
    By anuraag1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-17-2013, 07:02 AM
  6. [SOLVED] Data previously entered on UserForm dissappears, but still stored on worksheet - Excel VBA
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-19-2012, 12:24 PM
  7. Replies: 2
    Last Post: 04-25-2009, 04:19 AM

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