+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: Copy and Paste by VBA

  1. #16
    Registered User
    Join Date
    09-19-2011
    Location
    Milan
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Copy and Paste by VBA

    Quote Originally Posted by watersev View Post
    hi, dumbago, how do you check if it's working?
    Hi, i have opened the file you sent to me and i've created a button and i'v assigned the macro test, but it doesn't work!
    I have also copy the text of the macro, and I pasted it in a new macro for my file, but it doesn't work.
    I you see the example i gave you, the last one, you have 8 sheets...every sheet is a step..you start with the first one in which i have nothing in the column TODAY (Sheet 0a) and nothing in the last column of the sheet 0b. Then i upload the file and in the sheet 1a there is the column date that is fulled by numbers and in the sheet 1b you have the last column filled (the yellow one). then the last fuor columns of the sheet 1b (excluyded the last one i've just filled in) has to be copied in the little table in the sheet 1a. then do it for every time i upload the file. but i want to have it in 2 sheets, not in sheets like in the file I sent you!

    However I have another idea. Let's invert the process:
    FIRST copy the last four columns oh the sheet Historical Trend (the 4 columns before the blank one)
    SECOND paste the columns copied before in the sheet Summary&Data in the little table, (the 4 columns that are already filled by numbers) excluded the column TODAY
    THIRD copy the column TODAY of the sheet Summary&Data
    FOURTH paste the column copied before (sheet Summary&Data) in the first blank column of the sheet Historical Trend.


    I hope i was able to tell you what i really need.

    Many thanks

  2. #17
    Valued Forum Contributor
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2003
    Posts
    2,488

    Re: Copy and Paste by VBA

    ok, can you activate sheet "3a" and run the code. The result is on sheet "3a" and "3b". It was meant to work on the activesheet and sheet next to it.
    Last edited by watersev; 09-21-2011 at 11:20 AM.

  3. #18
    Valued Forum Contributor
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2003
    Posts
    2,488

    Re: Copy and Paste by VBA

    please check attachment, run code "test"

    Please note date in B23 has been changed to a static date without formula for testing purpose.
    Attached Files Attached Files

  4. #19
    Registered User
    Join Date
    09-19-2011
    Location
    Milan
    MS-Off Ver
    Excel 2003
    Posts
    11

    Smile Re: Copy and Paste by VBA

    Quote Originally Posted by watersev View Post
    please check attachment, run code "test"

    Please note date in B23 has been changed to a static date without formula for testing purpose.
    HI watersev..it works: I've changed some cells in the Macro due to my needs, and now it works.
    Thank you so much, I really appreciate your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0