+ Reply to Thread
Results 1 to 7 of 7

Userform unable to update amended data

  1. #1
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Userform unable to update amended data

    Hi

    May I request for assistance to resolve the following issues with vba code.

    My userform has a search and update command buttons to correct errors in the database.

    However, I could not get the right vba to populate data from multipage 3 back to workheet1 Col P to W accordingly.

    The updated data seems to populate to back row 10 only, irrespective of the Name/Identity No.

    Attached worksheet for your assistance.

    Thank you.
    Nancy
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Userform unable to update amended data

    Try

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform unable to update amended data

    Hi

    Thank you for the solution. I really appreciate it.

    However, I do not know how to match back to my original worksheet.

    May I know what (3) denotes?

    Please Login or Register  to view this content.
    Thank you.

    Regards
    Nancy

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Userform unable to update amended data

    It is reference to colomn number
    for A use 1, B use 2 D use 4 and ..............

    Kind regards
    Leo

  5. #5
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform unable to update amended data

    Hi Leo

    Thank you for the great solution.

    However, when I match back to my original worksheet, it doesnt work.

    Is it possible to identify and recify the code as mine cannot match back to the correct Identity.

    I have updated the Clearcontent code.

    [CODE][/
    c.Offset(0, 13).Resize(, 4).ClearContents

    Set ws = Sheet1
    Set Addto = ws.Range("A65356").End(xlUp).Offset(0, 0)

    Application.ScreenUpdating = False

    For Each Ctrl In Frame3Apple.Controls
    If Ctrl.Value = True Then
    Addto.Offset(0, 15).Value = Ctrl.Caption
    Set Addto = Addto.Offset(0, 1)
    End If

    Next Ctrl

    c.Offset(0, 17).Resize(, 4).ClearContents

    Set ws = Sheet1
    Set Addto = ws.Range("A65356").End(xlUp).Offset(0, 0)

    Application.ScreenUpdating = False

    For Each Ctrl In Frame4Orange.Controls
    If Ctrl.Value = True Then
    Addto.Offset(0, 19).Value = Ctrl.Caption
    Set Addto = Addto.Offset(0, 1)
    End If

    Next Ctrl

    Application.ScreenUpdating = TrueCODE]

    Thank you for the assistance.

    Regards
    Nancy
    Attached Files Attached Files
    Last edited by nancyching1711; 06-27-2018 at 02:49 AM. Reason: Missed out attachment.

  6. #6
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Userform unable to update amended data

    if it is working in file posted and not in original file
    it is time for original file

    Kind regards
    Leo

  7. #7
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform unable to update amended data

    Hi Leo

    Noted your advice.

    Thank you so much.

    Nancy

+ 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. Replies: 2
    Last Post: 04-24-2017, 03:38 AM
  2. Unable to update the existing data with excel userform
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2016, 04:25 AM
  3. [SOLVED] Unable to add data via userform when another worksheet is open
    By Janto724 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2013, 09:11 AM
  4. [SOLVED] How to copy amended data to new worksheet
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2013, 01:28 PM
  5. Replies: 3
    Last Post: 11-08-2012, 07:25 PM
  6. Unable to search and display data from userform inputs
    By cedric06 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2012, 12:46 PM
  7. Unable to make changes to data table without losing during update
    By funroe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2011, 09:55 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