+ Reply to Thread
Results 1 to 3 of 3

Static date doesn't work if I use form to fill a table

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    Luanda, Angola
    MS-Off Ver
    Excel 2010
    Posts
    2

    Static date doesn't work if I use form to fill a table

    Hi

    In my sheet where I am using a table, the static date is not working when I am using a form to fill the table. It is working only if I am doing it directly in the table.

    Please help me to fill the automatically the stactic date in column B if I fill column C but using a form.

    If the form in column B stays "grey" to not allow the user edit data as for cells with formula, and the form to appear if the sheet is opened, it will be great help.

    Please see the VBA I am using :

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
    If Not Intersect(Target, Range("C3:C24000")) Is Nothing Then
    Application.EnableEvents = False

    Target.Offset(, -1) = Now

    Application.EnableEvents = True
    End If
    End Sub
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Static date doesn't work if I use form to fill a table

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-08-2013
    Location
    Luanda, Angola
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Static date doesn't work if I use form to fill a table

    Hi

    In my sheet where I am using a table, the static date is not working when I am using a form to fill the table. It is working only if I am doing it directly in the table.

    Please help me to fill the automatically the stactic date in column B if I fill column C but using a form.

    If the form in column B stays "grey" to not allow the user edit data as for cells with formula, and the form to appear if the sheet is opened, it will be great help.

    Please see the VBA I am using :

    [Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
    If Not Intersect(Target, Range("C3:C24000")) Is Nothing Then
    Application.EnableEvents = False

    Target.Offset(, -1) = Now

    Application.EnableEvents = True
    End If
    End Sub ]

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    Luanda, Angola
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Static date doesn't work if I use form to fill a table

    Hi

    In my sheet where I am using a table, the static date is not working when I am using a form to fill the table. It is working only if I am doing it directly in the table.

    Please help me to fill the automatically the stactic date in column B if I fill column C but using a form.

    If the form in column B stays "grey" to not allow the user edit data as for cells with formula, and the form to appear if the sheet is opened, it will be great help.

    Please see the VBA I am using :


    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 01-12-2013, 04:14 PM
  2. fill down doesn't work
    By Dabarley in forum Excel General
    Replies: 2
    Last Post: 08-20-2011, 04:07 PM
  3. Insert a static version of today's date that doesn't update itself
    By cannon_lab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2007, 08:25 AM
  4. [SOLVED] Why doesn't the automatic fill feature work in excel?
    By JenniferO in forum Excel General
    Replies: 4
    Last Post: 05-10-2006, 03:20 PM
  5. fill color doesn't work
    By Judy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2005, 09:06 PM

Tags for this Thread

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