+ Reply to Thread
Results 1 to 2 of 2

Macro to populate a cell and then execute another macro

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Macro to populate a cell and then execute another macro

    Hi,

    A former colleague created a spreadsheet programme that requires a user to input a fund code in cell B2 and then click a macro button in the same worksheet that extracts a report. The problem I have is that I need to extract reports for about 30 funds. This means that, for each fund, I need to type a fund code into cell B2, click the macro button and then save the output in a given directory.

    Is this the sort of job that could be spreeded up with another macro that will enter a fund code in B2, click the macro button and then save the output in the selected directory, before entering the next fund code in B2 and kicking off the macro again?

    I thought that I might create a table of fund codes in another worksheet that the macro I'm trying to create will work through.

    Any help would be much appreciated!

    Thanks!

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Hi Andrew C.,

    To speed the process up could be done by making a list of the funds you want to print and loop through this list with a macro.

    Something like :

    Please Login or Register  to view this content.
    Supposing you make the list in column A of sheet 'ListFunds', starting at cell A1.

    Success,

    Erik
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

+ 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