+ Reply to Thread
Results 1 to 6 of 6

XLM FORMAT.COLOR command or . . .

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    XLM FORMAT.COLOR command or . . .

    Most of the color formatting questions on the board seem to focus on setting conditionals for automatic formatting.

    I am trying to select a row from a variable in a known cell and use that as the Row number in an R1C1 concatenated reference to Format the color of a cell. This is the half of the project I am writing in XLM.

    I can do this quite successfully for FORMAT.NUMBER, I just can't find a command for cell formating or a reference as to what arguments will pick what colors, etc.

    This is the code that works perfectly for setting number format:
    Please Login or Register  to view this content.
    Thanks if anyone remembers or can point to a good XLM reference.

    Brian

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,009

    Re: XLM FORMAT.COLOR command or . . .

    You want the PATTERNS function.
    =PATTERNS(pattern#,forecolor,backcolor,newUI)
    is the syntax, so:
    =PATTERNS(1,1,3,TRUE)
    will apply pattern1 (solid fill), foreground colour black (irrelevant for pattern1) and back colour red. The TRUE bit refers to whether to use the Excel 5 settings rather than Excel 4.

    For a reference, see the Macrofun help file.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    Re: XLM FORMAT.COLOR command or . . .

    Quote Originally Posted by romperstomper View Post
    You want the PATTERNS function.
    =PATTERNS(pattern#,forecolor,backcolor,newUI)
    is the syntax, so:
    =PATTERNS(1,1,3,TRUE)
    will apply pattern1 (solid fill), foreground colour black (irrelevant for pattern1) and back colour red. The TRUE bit refers to whether to use the Excel 5 settings rather than Excel 4.

    For a reference, see the Macrofun help file.
    He of the venerated tatoo, is there an html post of the macro fun file anywhere. I cannot open or run those .exe downloads from Microsoft. I already tried downloading that very file which you had recommended to someone else. I do my best to search previous answers before praying upon the kindness of strangers. I just can't believe there isn't some website reference for XLM somewhere . . .

    Perhaps more important on the wish list is, is there a quick reference as to which colors are which numbers. Red is the 3rd down in the first column, so maybe you count down the column and then go to the top of the next column, but there is subset of colors at the bottom of the menu (I don't know if they are supposed to be brights or simple choice or why they are separate, but that confuses me as to which number will get which color. I'll experiment, and can probably logic it out, but if there is a reference for this command would be cool.

    I'm ever hopeful although to say microsoft help files are underwhelming would be an understatement.

    Best,

    2B

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,009

    Re: XLM FORMAT.COLOR command or . . .

    For a colour reference, see here. Note that that is the default palette, and may not apply to all workbooks.

    Can you download Zip files?

  5. #5
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    Re: XLM FORMAT.COLOR command or . . .

    Quote Originally Posted by romperstomper View Post
    For a colour reference, see here. Note that that is the default palette, and may not apply to all workbooks.

    Can you download Zip files?
    Zips not a problem. But the mac doesn't recognize those .exe self extracting archives for windows.

    thx.

    2B

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,009

    Re: XLM FORMAT.COLOR command or . . .

    Here's the Zip version, assuming you can run Hlp files.
    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