+ Reply to Thread
Results 1 to 5 of 5

vba to copy an entire row or a range and paste values to next available row

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    vba to copy an entire row or a range and paste values to next available row

    once again a newbie alert. I am having some serious difficulties in copying an entire row (which is constantly updating) into a new row each time. The purpose of that is to record some stocks value with the current time and to generate them instantly into a table and to automatically updating scatter chart.
    I am currently using this module:

    Please Login or Register  to view this content.
    but the problem with this one is when the copy is done into a table (to automatically generate into a chart) the time value (which is done in cell B2 by the =now() function) is copied not into the same row in which the stock date is generated in the table.

    well a long story short, I need help to adjust that module into one that will copy the full row (or a certain range, lets say A1:A10) and not the specified values separately like its done now. Help will be much appreciated.
    Last edited by Cutter; 07-22-2012 at 10:39 AM. Reason: Added code tags

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: vba to copy an entire row or a range and paste values to next available row

    Can you post a sample of your workbook?

    You can try .resize to achieve what you want. Also it would be good to use the rows counts as variable. I cannot see how without the copy, maybe an expert can. Whats the column with the longest data?

    Thanks I hope that helps

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vba to copy an entire row or a range and paste values to next available row

    well i attached the file. basicly cell A1 is now function because I want the time stemp each time i copy the values of this row (for the chart and record). All i need is your help in setting the most simple macro that based on time trigger to run constantly (every amount of seconds defined by me) and copy the first row with the updating data each time to a new row so it will be available in the data table.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: vba to copy an entire row or a range and paste values to next available row

    It's impossible to check your file, we need Distribution.xlsx

  5. #5
    Registered User
    Join Date
    07-14-2012
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: vba to copy an entire row or a range and paste values to next available row

    Basiclly the distribution file is not important because its only an online feed that I take my data from. It could as well be a refrence to a cell located in a diffrent worksheet.
    The help I ask for is by copying the first row and paste only the values of it into a new row each time to feed my table.

+ 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