+ Reply to Thread
Results 1 to 3 of 3

Develop Macros to Display Costs for Each Month (VBA)

  1. #1
    Registered User
    Join Date
    08-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2007
    Posts
    21

    Unhappy Develop Macros to Display Costs for Each Month (VBA)

    Hello,

    I developed two macros that insert a function into a cell only if two cells' dates are equal to each other. If this is true, the macros will divide the annual cost by 12.

    Here are the two macros:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    The solution as a result from the macros is displayed in GREEN.
    An example of the table is attached to this email.

    I am trying to develop code that will add the previous month's cost into the next month's cost value which would represent the RED cell values in the table. It will be ending with the 12th month after the GREEN cell which would equal the annual cost.

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by alansidman; 08-18-2014 at 07:52 PM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Develop Macros to Display Costs for Each Month (VBA)

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-18-2014
    Location
    USA
    MS-Off Ver
    MS Office 2007
    Posts
    21

    Re: Develop Macros to Display Costs for Each Month (VBA)

    Sorry for the mistake, and thanks for making the correction. Also, would you be able to help me with my problem?
    Thanks.

+ 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. Replies: 3
    Last Post: 07-28-2014, 08:57 PM
  2. [SOLVED] How to develop a macros to auto copy and save data on series basis to another sheet
    By warriorpoet7176 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-06-2014, 05:21 AM
  3. Combine costs per month
    By kanuvas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2009, 07:03 AM
  4. storage costs that vary in weight each month
    By repke in forum Excel General
    Replies: 4
    Last Post: 05-08-2008, 09:00 PM
  5. linest function to develop a model for forcasting current month sales
    By Jerhansen277 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2007, 04:40 PM

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