+ Reply to Thread
Results 1 to 3 of 3

macro to create a macro?

  1. #1
    Registered User
    Join Date
    06-22-2005
    Location
    Washington, USA
    MS-Off Ver
    Office 365
    Posts
    40

    macro to create a macro?

    Hi,

    I've searched around and I know i've seen threads out there, but I can't find them.

    Does anyone have any links to threads or otherwise on how, if possible, to create a macro that will creat another macro?

    I'm building a spreadsheet that department managers can use to create schedules for a store. What I want to happen is the dptm (dept. manager) to enter their department name and how many employees in their department on an input sheet. They'll run a macro that will create a section on another tab (along with the other departments) with their department name and empty rows where they can enter the employee information. The thing is, they may need to create more lines for additional employees.

    The way that I've envisioned this is that each section has a macro to add the additional lines. The dptm can just click on a button for their section and a new line is inserted (along with what ever formatting I need). So the initial macro would need to create the section and the macros along with it.

    is it possible to have a macro create another macro?

    I am definitely open to other ways of doing it. I'm not the most savvy programmer so it could just be that I'm taking the wrong approach.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    http://www.cpearson.com/excel/vbe.aspx

    This is not entry-level programming, it can make virus scanners very nervous, and there is almost certainly a better and less complicated way to do what you want.

  3. #3
    Registered User
    Join Date
    06-22-2005
    Location
    Washington, USA
    MS-Off Ver
    Office 365
    Posts
    40
    interesting. I'd never considered that it could be seen as a virus.

    yeah, as I was typing that, I just kept thinking, "there's got to be an easier way"

    I think I'm going to regroup and try to come up with a better way.

    thank you for that link.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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