+ Reply to Thread
Results 1 to 3 of 3

Static date

  1. #1
    Registered User
    Join Date
    03-24-2011
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    54

    Static date

    Hi guys what I'm trying to do may seem simple but I dont no that much about VBA & I carn't seem to find a answer for what I need it to do. What I'm tring to do is add the current date to a cell without it changing when somebody opens the excel file. I have a master template that when I open it i want it to put the current date (not date & time) in cell B10 (Sheet4, which is called "Tab2") so once I have finshed filling in the data on the work sheet I can save it without the worry of the date changing. I have the current code within "Thisworkbook" that works but it add's the time on which I dont need

    Please Login or Register  to view this content.
    When I change the "Now" to "Date" I get an error which say's it can't find the project or library?

    Any ideas how to fix this?

    Thanks Pete
    Last edited by Pedro1803; 10-13-2011 at 12:40 PM. Reason: Solved

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Static date

    Sometimes, prefixing with vba will solve that problem. You can use date or now. I would format it to a date format.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-24-2011
    Location
    Lancashire
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Static date

    Quote Originally Posted by Kenneth Hobson View Post
    Sometimes, prefixing with vba will solve that problem. You can use date or now. I would format it to a date format.

    Please Login or Register  to view this content.
    That works great, cheers Kenneth

+ 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