+ Reply to Thread
Results 1 to 2 of 2

VBA, Linking forms and feeding data from a master worksheet

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    34

    Thumbs up VBA, Linking forms and feeding data from a master worksheet

    Hello

    I am looking for some advice and perhaps some help with my problem.

    I have created a 12 userform entry which, through unloading one form to another, feeds data and formulaes to a worksheet via a simple ActiveCell Offset (0,1) style entry. The worksheet naturally contains more data than contained in each form to perform calculations or other items which the user just doesn't need to do. For example the form allows a date of birth to be entered and the Macro operates and within the worksheet includes the current date and then a formulae to record the users age.

    Next I need to bring forth some information from userform1 to userform2. However some of the steps involve more than one calculation and therefore, in the example of age, I currently have two macro buttons, one to calculate today's date and the other to calculate the age thereby allowing the 'OK'/Next Userform action to bring forth the age.

    Is there a better way of structuring my work so its a lot cleaner? I have looked through the forum to see if there are any options for a string of actions in one Macro so by clicking a single button, the current date is inserted to a textbox10 and the age into textbox11 on Userform1 allowing textbox11 to be brought onto Userform2. Or I was thinking if there is a way of feeding the items from the worksheet into the Macro, so items entered and written to a worksheet through Userform1 can be looked up to Userform2.

    Any help would be greatly appreciated

    Many thanks
    Michael

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

    Re: VBA, Linking forms and feeding data from a master worksheet

    Quote Originally Posted by Mlanger575 View Post
    Is there a better way of structuring my work so its a lot cleaner?
    Quite possibly, but impossible to say for sure without seeing the file. Any chance you could attach it?

    Quote Originally Posted by Mlanger575 View Post
    I currently have two macro buttons, one to calculate today's date and the other to calculate the age
    This bit rings alarm bells for me. Why do you need a button to calculate today's date? Excel already knows what that is and can be ascertained by using 'Date' in the code. For example the below code will show a message box with yesterday's date:
    Please Login or Register  to view this content.
    BSB

+ 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] Excel & Sharepoint - feeding data from 3 workbooks to one master
    By N3CREN in forum Excel General
    Replies: 11
    Last Post: 06-07-2018, 10:31 AM
  2. Feeding Data from Master Worksheet To Another Worksheet
    By ool3ecc4oo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2017, 10:09 AM
  3. Locking/hiding a worksheet that contains data feeding a dashboard
    By mnihiser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2014, 08:49 AM
  4. Multiple workbooks feeding one master workbook
    By myshadeofglory in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2011, 04:34 PM
  5. Replies: 2
    Last Post: 03-28-2011, 10:14 AM
  6. Replies: 0
    Last Post: 03-23-2011, 11:35 AM
  7. feeding forms into worksheets
    By lisabell1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2010, 08:14 AM

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