+ Reply to Thread
Results 1 to 3 of 3

I have a script in where it copies a sheet's data, and pastes it, but over pastes...

  1. #1
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    I have a script in where it copies a sheet's data, and pastes it, but over pastes...

    Here is my script.

    Please Login or Register  to view this content.
    It technically works perfectly till here:

    Please Login or Register  to view this content.
    Now technically everything in this part works correctly, but the last line in the code, it pasts everything correctly, then it goes one step beyond. I'd like to know why. If I get rid of the offset it overwrites what is in the cell above in O through S. I need to know the first and last cell, because the data needs to be only written to a specific cell range.

    If there is an easier way of doing this it be appreciated if someone could tell me, if not then can someone tell me how to fix this?

    Thanks.

    Attached is a workbook.

    http://dl.dropbox.com/u/3327208/Exce...6LastRows.xlsm
    Last edited by Cyberpawz; 05-23-2012 at 02:28 PM.

  2. #2
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: I have a script in where it copies a sheet's data, and pastes it, but over pastes...

    Have you tried:

    Please Login or Register  to view this content.
    Last edited by wallyeye; 05-24-2012 at 11:14 AM.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: I have a script in where it copies a sheet's data, and pastes it, but over pastes...

    Wallyeye

    Use code tags for all code in posts
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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