+ Reply to Thread
Results 1 to 8 of 8

Date stamp

  1. #1
    Registered User
    Join Date
    06-09-2010
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Date stamp

    Hi guys new to the forum but i have been reading a ton in the last few weeks.

    I have a workbook that has 3 tabs on it. This workbook is how people receive their work for the day. Sheet one is where the new work is placed it has data in columns A-M. In column M is a drop down menu.

    I have already built a Macro (thanks to the help i found on this forum) that automatically moves all the information in a particular row when "done" is selected from the corresponding drop down menu.

    So if "done" is selected from the drop down menu in cell M1 all of row 1 is moved to sheet three.

    My problem is i want to have a time stamp on the row on column Q when it is moved to sheet 3.

    Unfortunately the codes i have tried have not worked and they are all at work so i cant post them.

    Can anyone help me out with this. I would classify myself as a beginner and i am trying to teach myself VBA. i am getting the hang of it pretty quick but this one has got me stumped.

    I did find a single line code that worked but it drastically slowed down my "done" macro. This cant happen because the people using the spread sheet do not know Excel very well and when i tested it out on someone they started to freak out and get frustrated.

    So to summarize, when row 1 A-M is cut and pasted from sheet 1 to sheet 3 (first row available) i want a time stamp in column Q of the row the info was pasted into.

    Thank you for any help you can give.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date stamp

    I imagine there is a line of code in your macro that does the actual cut/paste. Just prior to that, you need to insert the datestamp, something along the lines of:

    Please Login or Register  to view this content.

    If you want to post up the code you're using, we can offer something more exact.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-09-2010
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Date stamp

    Quote Originally Posted by JBeaucaire View Post
    I imagine there is a line of code in your macro that does the actual cut/paste. Just prior to that, you need to insert the datestamp, something along the lines of:

    Please Login or Register  to view this content.

    If you want to post up the code you're using, we can offer something more exact.
    You know what i never even thought to add the date stamp to the macro i already have.
    I was trying to write a entire new code.

    Like i said i am a bit of a beginner trying to teach myself VBA.

    I do have a line in the code that cuts and paste's i will try your suggestion tomorrow.

    Thank you very much for the help.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Date stamp

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    06-09-2010
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Date stamp

    Ok i tried what was sugested above but now my macro instead of moving over the one row just keeps running the macro until every line of text has been moved to tab 3.

    I only want text moved if the user picks "done"

    Please Login or Register  to view this content.
    Last edited by Dunncsu; 06-10-2010 at 11:14 AM.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date stamp

    Try this instead:
    Please Login or Register  to view this content.


    Please edit your post above and put [code] tags around your code, like I've done to mine in this post.

  7. #7
    Registered User
    Join Date
    06-09-2010
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Date stamp

    Its giving me a Runtime error "type mismatch"

    for this line
    Please Login or Register  to view this content.
    Thank you so much for your help with this

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date stamp

    Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook. Let's take a look at the same thing.

+ 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