+ Reply to Thread
Results 1 to 7 of 7

I have a list containing customer data.. can I insert a date automatically?

  1. #1
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118

    I have a list containing customer data.. can I insert a date automatically?

    Hello.

    I have a spreadsheet which I am trying to use to capture customer data. What I want to happen is whenever I enter a new record, the date appears automatically in a Date column.

    eg.

    .......A............................B............................C.....
    CompanyName_____CompanyPhone_______Date


    Whenever I put a record into the first and second column, the date appears in column C.

    I wat it to work a bit like Autonumber in Access if you see what I mean.

    I hope this i enough info, please go easy on me as I am not an advanced user.
    Last edited by VBA Noob; 11-07-2008 at 01:53 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Do you want the column C to fill with the current date automatically
    You need a VBA code.
    or easier way, you can use shortcut: (Ctrl +
    I need your support to add reputations if my solution works.


  3. #3
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118
    Quote Originally Posted by sglife View Post
    Do you want the column C to fill with the current date automatically
    You need a VBA code.
    or easier way, you can use shortcut: (Ctrl +

    Hi, Yeah I need the date to appear automatically. I have been playing around with macros but I don't really know any vba code

  4. #4
    Registered User
    Join Date
    11-06-2008
    Location
    UK
    Posts
    5
    Not such an experienced user myself but this could work

    CW
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118
    Quote Originally Posted by celtic warrior View Post
    Not such an experienced user myself but this could work

    CW
    Thanks for the reply, that's a good idea, but I need the date to be kept as a value, rather than the TODAY function which will update automatically.

    Appreciate the response though

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Paste this into the sheet's code (right click sheet tab - view code)

    Please Login or Register  to view this content.
    I set it to add a date on input to Column 1 (A) except for row 1. We can make the parameters for what calls this macro as specific as you like but I think this might be all you need.

    Also, this will "hose" any existing entries in Column C - would you prefer it to overwrite automatically or not?

    HTH

    The "overwrite" mode could be turned off by replacing this line of code:
    Please Login or Register  to view this content.
    (sure you can guess where...)
    Last edited by Cheeky Charlie; 11-07-2008 at 01:02 PM. Reason: overwrite option - alternative line of code

  7. #7
    Forum Contributor
    Join Date
    07-31-2008
    Location
    Berkshire, UK
    MS-Off Ver
    2003 & 2007
    Posts
    118
    Mate, that is great.

    Thanks so much for taking the time to look at this.

+ 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