+ Reply to Thread
Results 1 to 3 of 3

Copying between workbooks, then adding a date into cell

  1. #1
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    121

    Copying between workbooks, then adding a date into cell

    Hello,

    I am trying to take a daily total, lets say from B1, and add it into a seperate workbook Column "B", daily. However, I would like to add the date to display in column A, in addition to adding the total for that day into column "B" when the script is ran. Im pretty sure I can just use =today() if that will be simplest (unless of course theres an easier way to stick the date into the cell via VBA). Im not sure about the syntax, but Im thinking where I have (nextrow, "B"), I can add the date via (nextrow, "A"). I tried to formular1c1, but not sure if theres a more practical way? I think im over-thinking it..

    Also, the workbook to copy from will be named different every day, so I have set it to Workbooks(2). Thanks for any suggestions!

    Please Login or Register  to view this content.
    :EDIT:

    My solution is to add:
    Please Login or Register  to view this content.
    How do I set the date to format as 17-Aug for example without having to format the column every time?
    Last edited by jayinthe813; 08-28-2012 at 09:27 AM. Reason: solution and new question

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying between workbooks, then adding a date into cell

    Change this line from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Copying between workbooks, then adding a date into cell

    thank you so much!
    Last edited by Cutter; 08-28-2012 at 12:17 PM. Reason: Removed whole post quote

+ 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