Closed Thread
Results 1 to 3 of 3

complex macro

  1. #1
    Registered User
    Join Date
    05-14-2008
    Posts
    18

    complex macro

    here goes.....

    i want to record/ create macro that inserts 12 new lines in a sheet with the months of the year going down in column 'L' . every time the macro runs, it needs to be able to find the next blank line, so it doesnt over write any data (which is the problem iv been having)

    also as the macro is run i need some equations to be exectued in relation to the pre defined jan, feb, march, april, etc.

    the code is:

    "=SUMPRODUCT((MONTH($E$6:$E$20)=ROW(A1))*($H$6:$H$20 <>""))"

    also other simple 'sum' functions need to be executed upon the macro being run.

    can this be done.

    please advise

    thanks

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Its not totally clear where you want to put your formula - an attachment would help.

    Getting the months can be performed with this macro.

    Please Login or Register  to view this content.
    giving the name of the month in the language of the regional setting.
    Martin

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Thread closed for invalid title & Duplicate thread posting
    Last edited by mudraker; 05-16-2008 at 07:08 AM.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

Closed 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