+ Reply to Thread
Results 1 to 4 of 4

Need code that on time is changing text in cell ?

  1. #1
    Registered User
    Join Date
    07-22-2013
    Location
    holland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Need code that on time is changing text in cell ?

    Hi Guys,

    I need a code that if i make an workbook open that in a cell a text is displayed after a time i give in. I need to display Morning, Afternoon, Night.

    So i need to change the text at 05:15 - 13:15 - and 21:15. I want it only to change if i open the workbook not if the workbook is active. So when i open the workbook say at 13:16 it is displaying "afternoon", Hope you understand my question. Feel free to ask.

    Regards,

    Black7
    Last edited by black7; 08-21-2013 at 05:29 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need code that on time is changing text in cell ?

    Put this macro in a standard code mdule (e.g.; Module1).
    Change the Sheet name and Cell address to where you want the text displayed.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-21-2013 at 07:40 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-22-2013
    Location
    holland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Need code that on time is changing text in cell ?

    Thank you so far, i want it to work on all sheets and the same cel. What must i change to get it to work ?

    Black7

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need code that on time is changing text in cell ?

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-21-2013 at 10:48 PM.

+ 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] Need code for changing workbook on time ?
    By black7 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-20-2013, 05:08 PM
  2. [SOLVED] Hard time changing this code
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 62
    Last Post: 06-11-2012, 08:15 PM
  3. difficulty writing code for changing font color if cell contains specific text
    By curbster in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-13-2009, 03:23 AM
  4. WordArt - changing text color in code
    By SuitedAces in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2007, 08:59 AM
  5. [SOLVED] Changing Text to Time in Excel
    By Chip193 in forum Excel General
    Replies: 1
    Last Post: 07-27-2005, 01:06 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