+ Reply to Thread
Results 1 to 2 of 2

Formatting If Statement Code

  1. #1
    Registered User
    Join Date
    08-25-2015
    Location
    LA
    MS-Off Ver
    2007
    Posts
    9

    Formatting If Statement Code

    Hi,

    I am creating a model that does forecasting and planning for a company. I have a table with all the months in different columns and directly above it says either Actual or forecasting. I have a drop down list and I was hoping to use the drop down list to tell what cells to merge together and color as actuals and which to move together and color as forecasting.

    For example if the drop down list is august then all the cells above January through August (D6:K6) would merge together and display "Actuals" in a dark blue formatting color and September through December cells (L6:O6) would merge together and display "Forecast" in a light blue formatting color. And further if the drop down only displayed February then only January and February (D6:E6) would be merged together and display "Actuals" and March through December (F6:O6) would merge together and display Forecast.

    I attached a picture of the model. Any help would be extremely appreciated.

    Thank you!!
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Formatting If Statement Code

    Hi Chris

    This is a duplicate Thread. Please have a Moderator close one of them.

    http://www.excelforum.com/excel-prog...nter-code.html
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Tool or code to copy VBA code to OneNote or Word while preserving VBA formatting
    By gregersdk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2015, 04:07 PM
  2. [SOLVED] VBA If Statement Formatting
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2014, 11:32 AM
  3. [SOLVED] Like some ideas on improving code on long IF statement used in VBA code please
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2013, 01:44 PM
  4. [SOLVED] Userform TextBox Problem... formatting code clears data instead of formatting
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-26-2012, 11:00 AM
  5. IF statement using formatting criteria (NOT conditional formatting)
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2009, 01:57 AM
  6. IF statement to control formatting?
    By drdavidge in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-24-2008, 05:18 PM
  7. Conditional Formatting - IF Statement
    By todd.debacker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2007, 03:39 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