+ Reply to Thread
Results 1 to 5 of 5

A Source to Study VBA User Forms

  1. #1
    Registered User
    Join Date
    08-29-2022
    Location
    Omaha, NE
    MS-Off Ver
    10
    Posts
    4

    A Source to Study VBA User Forms

    I have such a broad scope question I thought it might just be best to spend some time learning VBA User forms.

    The question is this. When I design and then Userform.show I of course use the userform initialize to have the user put all the stuff in the text boxes and choose from the comboxes and then stuff that into the different sheet cells.

    But then how do I use the userform to grab stuff from sheet cells and then have the user modify it and put back into the sheet? I can't use the initialize event again. I don't think I can.

    I can't even come up with some code to post here to have you guys rip on me. If you can just point me in a couple directions to study I reasoned might be best staring point.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: A Source to Study VBA User Forms

    attached a simple demo of the basics (Add, Update, Delete).
    to add a new entry first press 'Clear' then put your data into the three fields and press 'Add'
    the rest should be intuitive and the code is readable and easy to follow.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: A Source to Study VBA User Forms

    You know the names of the text boxes, etc., so you just copy from the cell(s) to the box(es).

    For example
    Please Login or Register  to view this content.
    Then Show the UserForm
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    08-29-2022
    Location
    Omaha, NE
    MS-Off Ver
    10
    Posts
    4

    Re: A Source to Study VBA User Forms

    Quote Originally Posted by torachan View Post
    attached a simple demo of the basics (Add, Update, Delete).
    to add a new entry first press 'Clear' then put your data into the three fields and press 'Add'
    the rest should be intuitive and the code is readable and easy to follow.
    torachan, thank you for providing an absolute perfect study guide for me to learn what I am trying to do. I am going to take this and do exactly that: STUDY! Thus far I have only glanced at the code and I have played with the form just a little. But I already know it is exactly what I need.

    Thank you again!

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: A Source to Study VBA User Forms

    thanks for the feedback - happy to have helped - post back on this site if you need further help.

+ 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. user forms
    By AndrewWheeler87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2013, 11:29 AM
  2. Vba User forms
    By Titansmasher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2012, 05:33 AM
  3. [SOLVED] User forms - choosing location of your data to be shown in your user form
    By jasonbwt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2012, 08:48 AM
  4. User Form to select other User Forms
    By nms2130 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2011, 12:57 PM
  5. VBA User Forms
    By CJ-22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2006, 03:45 PM
  6. User forms help
    By mav93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2006, 04:50 PM
  7. User forms
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2006, 07:31 AM
  8. User Forms
    By ajocius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2005, 06:15 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