+ Reply to Thread
Results 1 to 3 of 3

Formatting ouput of userform when invoking a modification

  1. #1
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Formatting ouput of userform when invoking a modification

    greetings everyone!

    i was wondering if someone could help me fix a problem i am having with a userform. the problem i am having is when the userform is initialized and a customer is selected from the top combobox, the information is populated below in the userform as it is supposed to, however, when i change a field (eg: Month or Notes) and then press the "Modify Existing information" command button, the code places first name then last name onto sheet1 instead of last name, first name. i know the code is performing as it is written, but i need the output of the name to follow the aforementioned style when the oModify routine is ran. any suggestions?

    thanks in advance for any assistance you can offer!

    david

    (see attached worksheet)
    Attached Files Attached Files

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

    Re: Formatting ouput of userform when invoking a modification

    In your "oAdd" sub you have this:
    Please Login or Register  to view this content.
    But in your "oModify" sub you have this:
    Please Login or Register  to view this content.
    Need some consistency with that and all should be fine.

    BSB

  3. #3
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Re: Formatting ouput of userform when invoking a modification

    when i make the change to
    Please Login or Register  to view this content.
    then the problem is
    Please Login or Register  to view this content.
    the vba code does not recognize at this point that this is a duplicate customer which is in need of just a modification of information on sheet1. as a result, the code asks if you want to add a new customer or cancel. if i click "yes" to add new one, the code inserts a new duplicate entry and the name is not formatted correctly.

    does anyone have any ideas around this problem?

    many thanks in advance!

    david
    Last edited by darbar76528; 10-03-2022 at 10:27 PM.

+ 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] vba for formatting the data and some modification
    By Ajay45822 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-09-2020, 01:44 PM
  2. [SOLVED] Listbox selecting another first item after modification on sheet trough userform
    By dark_prince69 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2018, 06:09 PM
  3. Listbox on userform population and modification
    By Lsxtrkiller in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2017, 03:29 PM
  4. [SOLVED] Modification of a UserForm scrolling to exclude labels at top
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-10-2015, 05:29 AM
  5. [SOLVED] Worksheet SelectionChange invoking userform sub
    By Brandon2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2014, 02:48 PM
  6. Slight modification to formatting sub-routine
    By pglufkin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2013, 07:06 PM
  7. Slight modification to formatting sub-routine
    By pglufkin in forum Excel General
    Replies: 0
    Last Post: 11-07-2013, 02:44 PM

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