+ Reply to Thread
Results 1 to 16 of 16

=NOW() alternative?

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    =NOW() alternative?

    2 worksheet open, one is macro coding and the other one is being coded.

    How do I code date and time on another sheet. Alternative to code below.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: =NOW() alternative?

    You will have to replace the workbook and worksheet with the proper reference

    Please Login or Register  to view this content.

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

    Re: =NOW() alternative?

    Change the sheet name to suit.

    Sheets("Sheet2").Range("A2").FormulaR1C1 = "=NOW()"
    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.

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    I did. Neither one of these works.
    Please Login or Register  to view this content.
    Group is name of my workbook and the sheet
    Quote Originally Posted by stnkynts View Post
    You will have to replace the workbook and worksheet with the proper reference

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    by this code, when a user open it up it will show date of as now, I want to have it dated when it's updated.
    Quote Originally Posted by AlphaFrog View Post
    Change the sheet name to suit.

    Sheets("Sheet2").Range("A2").FormulaR1C1 = "=NOW()"

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

    Re: =NOW() alternative?

    Quote Originally Posted by EXLent View Post
    by this code, when a user open it up it will show date of as now, I want to have it dated when it's updated.
    What is updated?

  7. #7
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    1. MACRO.XLSM
    2. GROUP.XLSM

    coding on MACRO.XLSM to put todays date on cell A2 of GROUP.XLSM. Not put =NOW() on cell A2.
    so when user open GROUP.XLMS next week, A2 will show dates of today.

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

    Re: =NOW() alternative?

    A formula of =NOW() is today's date. The formula changes the date every day.

  9. #9
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    yes I know.
    I want to date the worksheet.
    Right now, only thing I can think of is that =now() and save it as PDF, but I would really like to save it as XLSM.
    I also save it's name to Group 1003.XLSM by using
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    Something like this?
    Please Login or Register  to view this content.

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

    Re: =NOW() alternative?

    Workbooks("Group 1003.XLSM").Sheets("Sheet2").Range("A2").Value = Date

  12. #12
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    ok, that worked. So use Date instead of Now.
    Now, if I open the workbook tomorrow, A2 should be dated today 10/3 not 10/4 correct?

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

    Re: =NOW() alternative?

    Correct. You could use Date for the date only or Now for the current date and time.

  14. #14
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    Either of these works
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    I was using
    Please Login or Register  to view this content.

  15. #15
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: =NOW() alternative?

    Simply try..
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  16. #16
    Forum Contributor
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: =NOW() alternative?

    Thank you, that's ok it's working now.

+ 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. Is there an alternative for =NOW()
    By Ido Poelman in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-12-2014, 05:14 PM
  2. Alternative to If
    By leviathan86 in forum Excel General
    Replies: 9
    Last Post: 05-20-2014, 07:09 PM
  3. alternative to IF
    By mzarallo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2011, 03:46 PM
  4. IF alternative
    By N-ter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-25-2010, 06:49 AM
  5. If alternative
    By Busy Bee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2006, 07:53 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