+ Reply to Thread
Results 1 to 3 of 3

Macro not working correctly

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2007
    Posts
    15

    Macro not working correctly

    Could someone help. I've got this macro that works great in one report. So I copy copy it and modify it a bit to use in another report, but it is not performing all the commands. The macro creates "fake rows" of data to keep the subtotal function from going haywire, but for some reason it is not deleting the "fake rows" of data after the subtotaling is complete or bolding the entire subtotal rows. I've attached the file.
    Thank you for any help.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro not working correctly

    Hello erict,

    That workbook is a disaster. Somehow you have 3 sheets showing despite only 1 is shown in Excel objects. "Personal" has no data and has the macro code attached to the sheet. You have an empty module and 3 empty Class modules???

    I copied the code from the "Personal" worksheet into Module1. I also turned off showing the formulas in the cells. When I run the macro on the sheet "Macro1" it appears correct. Check the attached copy on your system.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-09-2007
    Posts
    15

    Re: Macro not working correctly

    Thanks for your time and thanks for cleaning up the macro mess. I'll use that one going forward. After pasting new data and executing the Macro1, I noticed a few things. The formula is shown in the subtotal row instead of the value, and the "fake rows" of data the macro should delete are still there. And, I noticed something else that has just started occuring after I received a new computer and it apperas here also - the marco now produces 2 grand total rows. I've attached the file with the executed macro if you have time to look at it. Thanks again for your help.
    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)

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