+ Reply to Thread
Results 1 to 2 of 2

if question

  1. #1
    Registered User
    Join Date
    11-23-2010
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    1

    if question

    Hi!

    I´m wonder if you can help me with the following code.I'm trying to insert a Webding letter("a") in textbox R15 if the textbox R14 value is less then today's date, if not i want the Webding letter "r" to appear in textbox R15 but i've get always the same letter "a" independently the result in textbox R14.

    thank you. Here's the code:

    If Me.R14.Value < Format(Now(), "dd/mm/yyyy") Then


    Me.R15.TextAlign = fmTextAlignCenter
    Me.R15.Font.Size = 12
    Me.R15.Font.Name = "Webdings"
    Me.R15.Value = "a"
    Me.R15.ForeColor = vbGreen
    Me.R15.BackColor = vbWhite
    Me.R15.Visible = True

    Else

    Me.R15.TextAlign = fmTextAlignCenter
    Me.R15.Font.Size = 12
    Me.R15.Font.Name = "Webdings"
    Me.R15.Value = "r"
    Me.R15.ForeColor = vbRed
    Me.R15.BackColor = vbWhite
    Me.R15.Visible = True




    End If

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: if question

    Hi, welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Mathematical question or excel question? Multiple several numbers in a row.
    By douglascaixeta in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-22-2015, 05:48 PM
  2. [SOLVED] Objective Question: High light the right answer with green before next question.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2015, 12:38 PM
  3. database question, excel data sorting question
    By weblisterltd.com in forum Excel General
    Replies: 1
    Last Post: 12-17-2014, 01:35 PM
  4. code to progressively go throughly question based on answer to first question
    By Ishwarind in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2014, 06:48 AM
  5. [SOLVED] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  6. Replies: 3
    Last Post: 06-17-2011, 08:09 AM
  7. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 AM

Tags for this Thread

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