+ Reply to Thread
Results 1 to 3 of 3

Is there a way to use a macro with an Excel form?

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    27

    Is there a way to use a macro with an Excel form?

    I have an excel doc where users enter five data points - let's say they are: Name, Number, Class, Date, and Hours. The Date field is a data validation field - it displays each Monday in a date form. I also have a form so the user can either fill out the form or enter the info direct in the cells.

    I'd like to be able to add a feature whereby the user can say they need to copy the data x amount of times, so the five data points from A1:A5 will copy the data to B1:B5 and C1:C5 if they need it three times, or for three weeks. Can this be done either in a form or without a form? If cells D1:D5 display John Smith | 12345 | Class 123 | March 2 | 9:00, is there a way I can say the assignment is for four weeks so it would populate D1:D5 through G1:G5 with the data copied down four times, preferably with the next three dates in the fourth field (i.e. March 2 in D, March 9 in E, March 16 in F and March 23 in G?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Is there a way to use a macro with an Excel form?

    Welcome to the forum

    Yes that is easyly done,

    Please Login or Register  to view this content.
    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Last edited by mehmetcik; 03-02-2020 at 11:02 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    02-14-2013
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Is there a way to use a macro with an Excel form?

    Thanks so much for replying! I'm doing something wrong - not sure what. Is there a way for the excel form to prompt a user to indicate how many rows need to be copied down for each entry?
    Thank you
    Attached Files Attached Files

+ 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] Macro Excel: Assigning Macro to User form
    By Ruffy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2017, 03:38 AM
  2. Excel Macro to extract field values in multiple PDF form to Excel sheet
    By vvk90 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2016, 08:21 AM
  3. Excel Form / Summary / Macro
    By crspangenberg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2015, 02:00 PM
  4. [SOLVED] Excel macro to extract Word form data into Excel
    By Phillipe in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-01-2012, 10:55 PM
  5. Macro in an Excel Form + Logic
    By psanghvi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 10:13 AM
  6. how do i use excel macro (form) in other sheets?
    By AshJoshi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2009, 02:01 AM
  7. [SOLVED] excel form activation in macro?
    By dr chuck in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2006, 02:25 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