+ Reply to Thread
Results 1 to 7 of 7

Copying columns into next blank column with date using cmd button

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    Williston, ND
    MS-Off Ver
    Excel 2010
    Posts
    62

    Copying columns into next blank column with date using cmd button

    I would like to have a cmd button that copies data from column B into Column H and adds the current date at the top of the column, then continue into each subsequent Column, I J K etc.

    Column B is a Total number for an entire job that spans multiple days so i need to be able to break that total down into how much in each given day. So to start, the button needs to only copy the data in the column B and put it into column H. However the next click needs to copy that the data from Column B into Column I but subtract Column Bs number from Column Hs number so it gives an accurate daily total and so on for each subsequent click.

    HELP??

    Attached is the sheet i am using.
    Attached Files Attached Files

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

    Re: Copying columns into next blank column with date using cmd button

    Column B does not have any formula. So its value will remain unchanged. If you copy the value from column B to H today - it will show 100 for example. Then when you copy the value from Column B to I, it will still show 100. How will you get a daily total?
    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
    Registered User
    Join Date
    10-29-2012
    Location
    Williston, ND
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copying columns into next blank column with date using cmd button

    there is a userform that i have in the full workbook that fills in this number. It gets updated frequently so that number will constantly be going up. I just sent that single sheet so you could visually see what I was trying for

  4. #4
    Registered User
    Join Date
    10-29-2012
    Location
    Williston, ND
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copying columns into next blank column with date using cmd button

    Ok I simplified my idea. I would rather input data from userfrom into columns and adjust the totals from there. Here is what I have so far but I cannot get it to input data

    Please Login or Register  to view this content.
    Last edited by DataVanMan; 01-06-2013 at 10:35 AM.

  5. #5
    Registered User
    Join Date
    10-29-2012
    Location
    Williston, ND
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copying columns into next blank column with date using cmd button

    Please Login or Register  to view this content.
    Ok this is what I have now, except it will not find the next empyt column, just copies over the same one.
    PLEASE HELP??
    Last edited by DataVanMan; 01-06-2013 at 10:35 AM.

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

    Re: Copying columns into next blank column with date using cmd button

    DataVanMan,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  7. #7
    Registered User
    Join Date
    10-29-2012
    Location
    Williston, ND
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copying columns into next blank column with date using cmd button

    Sorry about that, fixed it.

+ 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