+ Reply to Thread
Results 1 to 5 of 5

Color formatting based on result in vb for access reports

  1. #1
    Registered User
    Join Date
    03-18-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Color formatting based on result in vb for access reports

    Hi
    I am new to VBA and need some help. I want to excute this command but have been doing it in two steps instead of one.

    So if value is > 2 i want to format differently with the font color and back color but have been doing it in two steps. is there a way to squeeze into one

    Please Login or Register  to view this content.

    My next questions is if I have a range how would I do this? change the back color and forecolor?
    Please Login or Register  to view this content.
    Sorry for the improper format for my post. I think I comply with all the rules now.
    Last edited by dude19; 03-22-2011 at 02:40 PM.

  2. #2
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Simple Programming Question

    Please use code tags and give an appropriate title. You can read the forum rules and then edit your post.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Simple Programming Question

    The Forum Rules
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Simple Programming Question

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    03-18-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Color formatting based on result in vb for access reports

    Ok I think I edited things correctly.

+ 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