+ Reply to Thread
Results 1 to 3 of 3

Fill value Dased on last cell with timestamp in Col B. Cut/Paste or PasteSpecial

  1. #1
    Registered User
    Join Date
    08-21-2005
    MS-Off Ver
    2013
    Posts
    23

    Fill value Dased on last cell with timestamp in Col B. Cut/Paste or PasteSpecial

    Hello....


    I have been trying to figure this issue out and I have spent many hours with no resolution, so I am coming here for some guidance. I need a macro to do this

    I essentially have an Excel File in .xls format that has a login userform and a log sheet that records the username in Col B and the date/time in Column C.

    I have userform with a text box that the user type a number in. Once they click the command button, it copies the textbox value onto the worksheet to cell J2.

    That value from the text box, I need to go to the right of the last time stamp. and so on and so on until another timestamp is recorded. Then it will go to the 1st cell to the right of that time stamp etc....

    Any ideas on how I can accomplish this via macro?

    BookTest.xls

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Fill value Dased on last cell with timestamp in Col B. Cut/Paste or PasteSpecial

    It may have been helpful to include the userform in the example workbook.

    This example will put the textbox value in the next empty cell in row 15.
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-21-2005
    MS-Off Ver
    2013
    Posts
    23

    Re: Fill value Dased on last cell with timestamp in Col B. Cut/Paste or PasteSpecial

    Thanks AlphaFrog!

    I added the UserForm to the worksheet:
    Sheet1=Excel Login and Date/TimeStamps in Column A & B. I am manually entering this info into this workbook. The real workbook uses a macro.
    Sheet2=Is the Master List
    Sheet3= Is the filtered list based on the 6 digit SO entered into the Text Box and after they click on the "Copy Button" in the UserForm.

    I have 2 options:
    1) Either use the 6 digit number from the text box after they click the copy button or....
    2) Cut/Paste or Paste Special the value in Cell J2 in Sheet 3. After the cell is copied to the cell then, J2 will have it's contents cleared.

    Your code works fine for a single login but when another login occurs, I need the value down 1 row. starting at column C3 and across until the 3rd login occurs, which will start at C4 etc...

    What we are trying to do is to log each user and tracking what sales orders they are making tags for.....We have been having issues and trying to pinpoint who is doing what.

    As a side note, any way to only show actual data in the userform instead of the blank cells also? I am currently using a Sheet range for the data in the master file.

    I appreciate your time and assistance.
    Thank YOU!
    BookTest.xlsm

+ 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. Selection.PasteSpecial Paste:=xlValues
    By diegosened in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2013, 07:53 PM
  2. PasteSpecial Paste:=ColumnWidths
    By Arvi Laanemets in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2012, 10:09 AM
  3. Excel 2007 : Paste and PasteSpecial
    By Rick_Stanich in forum Excel General
    Replies: 7
    Last Post: 06-06-2008, 03:36 PM
  4. Pastespecial - paste values
    By sapphire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2008, 06:19 PM
  5. [SOLVED] PasteSpecial Paste:= xlPasteFormats problem
    By Ken Johnson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2006, 07:30 AM
  6. [SOLVED] Paste vs PasteSpecial
    By Gary''s Student in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2006, 02:35 PM
  7. paste negative time with PasteSpecial
    By Sylvian in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-02-2005, 02:05 AM

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