+ Reply to Thread
Results 1 to 2 of 2

Userform: Retrieve data from excel sheet and overwrite with new data in the same rows

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Userform: Retrieve data from excel sheet and overwrite with new data in the same rows

    Hello,

    I am new to VBA, I have created a userform with multipage, has two page that help to add new record in a excel sheet. Data has a unique reference no.(TxtRef.Value) for each record. I am trying to add a button to load the added data for a specific record using reference no back to userform so that it can be updated and overwrite back to the sheet in the same row, So far it is adding new record correctly. I do not know how to populate all the fields of the of an existing record and overwrite it back to the same row instead of adding a new record. Below is my codes

    I thank you in advance for your time and effort.

    Thanks,
    Pbawal


    Please Login or Register  to view this content.
    Last edited by Pbawal; 03-03-2014 at 04:31 PM.

  2. #2
    Registered User
    Join Date
    12-30-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Userform: Retrieve data from excel sheet and overwrite with new data in the same rows

    Thanks People,

    I got it my self...searching through internet. Below is my coding and it is perfectly retrieving data from excel sheet.

    Please Login or Register  to view this content.
    and to update the data in the same row to overwrite I am using

    Please Login or Register  to view this content.
    This is not a complete module just the part I asked for..!!

+ 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] Need Userform to overwrite same set of data
    By ericbinfet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2014, 08:01 PM
  2. Use textbox in userform to retrieve data
    By Fogsta65 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2013, 04:59 PM
  3. Retrieve data from excel in userform to edit
    By Daantje71 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 03:06 PM
  4. [SOLVED] Read/Retrieve/locate data between different excel sheet using macro/vba
    By EugeneE in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-26-2013, 07:50 AM
  5. Split data from Master Sheet to existing worksheets and overwrite data
    By vmwest in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-21-2013, 05:36 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