+ Reply to Thread
Results 1 to 2 of 2

VBA Macro and Text Boxes

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    VBA Macro and Text Boxes

    Hi

    I am very new to VBA and macros but I understand the concept and I am using Excel 2007.

    I am trying to do some conditional formatting for work but I am struggling as you cannot do that for text boxes.

    I have a spreadsheet where I will input data. This is then translated to percentages which is then put into a one page report using text boxes.

    What I want to be able to do is make a macro for a range of percentages which will in turn fill the background of the text box with a colour. depending on the percentage in a given cell. For instance:

    100% - Green
    80% to 99% - Amber
    79% or less - Red

    I have the developer tabs open and Active X with allowed access.

    Any help would be much appreciated.

    Kind Regards
    Chris

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: VBA Macro and Text Boxes

    Hi Chris,

    Why not do the calculations in normal Excel Cells and do Conditional Formatting on them. Then do a Print a selected range instead of trying to print your text boxes?
    Last edited by MarvinP; 04-18-2012 at 05:21 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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