+ Reply to Thread
Results 1 to 3 of 3

Highlight Subtotaled Random Cell

  1. #1
    Registered User
    Join Date
    03-27-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Highlight Subtotaled Random Cell

    When trying to use the macro below for subtotaled columns I will select a range of subtotals, use the Select Visible Cells button, start the macro and it will highlight cells. However, the macro ignores the visible cells and looks at the entire range to randomly highlight. How can the macro only look at the visible subtotaled cells? I believe it has to do with Selection.SpecialCells(xlCellTypeVisible).Select, just not sure where in the macro to define visible cells.

    I have just started with macros and learning as I go. From what I can tell it seems like the possibilities are endless with a macro.

    Please Login or Register  to view this content.
    Thanks!

    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 03-28-2013 at 10:43 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Highlight Subtotaled Random Cell

    Hi and welcome to the forum

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

    Posting code in [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 here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-27-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Highlight Subtotaled Random Cell

    Appreciate the help. I'll make sure to do that in the future.

    Thanks FDibbins!

+ 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