Results 1 to 4 of 4

Need help with VBA script for conditional formatting

Threaded View

qwertybirdy Need help with VBA script for... 12-18-2014, 12:57 AM
Crooza Re: Need help with VBA script... 12-18-2014, 02:08 AM
qwertybirdy Re: Need help with VBA script... 12-18-2014, 01:14 PM
Crooza Re: Need help with VBA script... 12-18-2014, 04:09 PM
  1. #1
    Registered User
    Join Date
    10-13-2014
    Location
    London, England
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Need help with VBA script for conditional formatting

    I would really appreciate some help writing a script in the module of the file I have attached.

    Write a sub that colors the interior of every other row gray. Only color the data area.
    Write a sub that examines each region's quarterly sales fluctuation. For each region, if the sales increase consecutively for 3 quarters, color the region label green; if the sales decrease consecutively for 3 quarters, color the region label red.


    So far for the first sub I have the following code but it is really messy and far from simple:

    Sub Macro1()
    '
    ' Macro1 Macro

    Range( _
    "B2:M2,B4:M4,B6:M6,B8:M8,B10:M10,B12:M12,B14:M14,B16:M16,B18:M18,B20:M20,B22:M22,B24:M24,B26:M26,B28:M28,B30:M30,B32:M32,B34:M34,B36:M36,B38:M38,B40:M40" _
    ).Select

    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .ThemeColor = xlThemeColorDark1


    ***THANK YOU FOR ANY KIND OF GUIDANCE OR HELP. I REALLY APPRECIATE IT. I AM TRYING TO LEARN MORE ABOUT VBA.***
    Attached Files Attached Files
    Last edited by qwertybirdy; 12-18-2014 at 12:58 AM. Reason: Revision

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  2. [SOLVED] Script which allows user to define the color in conditional formatting
    By PariD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2012, 03:55 PM
  3. VB script to do conditional formatting of font size
    By Antila in forum Excel General
    Replies: 4
    Last Post: 06-20-2011, 01:50 PM
  4. VB Script Sorting and Conditional Formatting?
    By fasterthanyours in forum Excel General
    Replies: 12
    Last Post: 07-30-2009, 02:09 PM
  5. [SOLVED] SCRIPT: custom formatting
    By nastech in forum Excel General
    Replies: 0
    Last Post: 04-27-2006, 12:00 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