+ Reply to Thread
Results 1 to 8 of 8

How to automatically insert date when text entered in neighboring

  1. #1
    ek10101
    Guest

    How to automatically insert date when text entered in neighboring

    I would like to set up my spreadsheet so that when I enter text in a certain
    cell the date is automatically posted in the next cell over. Any suggestions?

  2. #2
    CLR
    Guest

    RE: How to automatically insert date when text entered in neighboring

    Private Sub Worksheet_Change(ByVal Target As Range)
    'Macro inserts date in cell to the right of the activecell upon value entry
    ActiveCell.Select
    If Not Selection Is Nothing Then
    Application.Selection.Offset(0, 1).Value = Date
    End If
    End Sub


    Vaya con Dios,
    Chuck, CABGx3




    "ek10101" wrote:

    > I would like to set up my spreadsheet so that when I enter text in a certain
    > cell the date is automatically posted in the next cell over. Any suggestions?


  3. #3
    brian thompson3001 via OfficeKB.com
    Guest

    Re: How to automatically insert date when text entered in neighboring

    ek10101 wrote:
    >I would like to set up my spreadsheet so that when I enter text in a certain
    >cell the date is automatically posted in the next cell over. Any suggestions

    hi

    try this, a1 being the text cell
    =IF(A1="","",TODAY()

    regards

    --
    bnt

    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...excel/200604/1

  4. #4
    ek10101
    Guest

    Re: How to automatically insert date when text entered in neighbor

    Thanks for the quick reply. It's close, except that I want the date to
    update the day I enter the info, and then stay that date until the next time
    that information is updated. With the "today" command, the date changes
    every day.

    "brian thompson3001 via OfficeKB.com" wrote:

    > ek10101 wrote:
    > >I would like to set up my spreadsheet so that when I enter text in a certain
    > >cell the date is automatically posted in the next cell over. Any suggestions

    > hi
    >
    > try this, a1 being the text cell
    > =IF(A1="","",TODAY()
    >
    > regards
    >
    > --
    > bnt
    >
    > Message posted via OfficeKB.com
    > http://www.officekb.com/Uwe/Forums.a...excel/200604/1
    >


  5. #5
    ek10101
    Guest

    RE: How to automatically insert date when text entered in neighbor

    I don't understand this post. Could you rephrase please? Thanks for your
    help.

    "CLR" wrote:

    > Private Sub Worksheet_Change(ByVal Target As Range)
    > 'Macro inserts date in cell to the right of the activecell upon value entry
    > ActiveCell.Select
    > If Not Selection Is Nothing Then
    > Application.Selection.Offset(0, 1).Value = Date
    > End If
    > End Sub
    >
    >
    > Vaya con Dios,
    > Chuck, CABGx3
    >
    >
    >
    >
    > "ek10101" wrote:
    >
    > > I would like to set up my spreadsheet so that when I enter text in a certain
    > > cell the date is automatically posted in the next cell over. Any suggestions?


  6. #6
    Registered User
    Join Date
    04-04-2006
    Location
    Tennessee
    Posts
    13

    Thumbs up Thanks

    I am currently using a spreadsheet that I have decided to use the above formula "=IF(A1="","",TODAY()" to decrease the time of entering my data.

    Thanks

    Tony

    Simple, yet effective!

  7. #7
    CLR
    Guest

    Re: How to automatically insert date when text entered in neighbor

    My previous response is a macro, actually called a ChangeEvent macro.....it
    goes in the Worksheet module of whatever sheet you wish the feature applied
    to........if you're new to macros, you might want to take a look at David
    McRitchie's site....

    http://www.mvps.org/dmcritchie/excel/excel.htm

    hth
    Vaya con Dios,
    Chuck, CABGx3


    "ek10101" <[email protected]> wrote in message
    news:[email protected]...
    > I don't understand this post. Could you rephrase please? Thanks for your
    > help.
    >
    > "CLR" wrote:
    >
    > > Private Sub Worksheet_Change(ByVal Target As Range)
    > > 'Macro inserts date in cell to the right of the activecell upon value

    entry
    > > ActiveCell.Select
    > > If Not Selection Is Nothing Then
    > > Application.Selection.Offset(0, 1).Value = Date
    > > End If
    > > End Sub
    > >
    > >
    > > Vaya con Dios,
    > > Chuck, CABGx3
    > >
    > >
    > >
    > >
    > > "ek10101" wrote:
    > >
    > > > I would like to set up my spreadsheet so that when I enter text in a

    certain
    > > > cell the date is automatically posted in the next cell over. Any

    suggestions?



  8. #8
    Ben Dummar
    Guest

    RE: How to automatically insert date when text entered in neighbor

    Chuck,

    This macro is what I am looking for! Thanks!

    How do I change it so that it only adds the date when any cell in column B
    is updated instead of any cell in the spreadsheet.



    > Private Sub Worksheet_Change(ByVal Target As Range)
    > 'Macro inserts date in cell to the right of the activecell upon value entry
    > ActiveCell.Select
    > If Not Selection Is Nothing Then
    > Application.Selection.Offset(0, 1).Value = Date
    > End If
    > End Sub
    >
    >
    > Vaya con Dios,
    > Chuck, CABGx3
    >
    >
    >
    >
    > "ek10101" wrote:
    >
    > > I would like to set up my spreadsheet so that when I enter text in a certain
    > > cell the date is automatically posted in the next cell over. Any suggestions?


+ 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