+ Reply to Thread
Results 1 to 5 of 5

Odd paste problem, code pastes into wrong cell.

  1. #1
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Odd paste problem, code pastes into wrong cell.

    I have an application that, on opening, will open another .xls and copy some data from it, pasting it into a temp sheet so I don't have to keep opening the other .xls to refer to it.

    In the workbook open event I have the following code:

    Please Login or Register  to view this content.

    In the test environment, on both XP and Win 7 machines and on 93 different users PCs running various operating systems and all versions of Office from 2002 onwards, it works fine.

    For just 1 user it fails. I've checked, when opening the workbook the data is pasted into cell A1, not cell C1 as it should, and the first character of the first entry in the range is missing. If I manually run the workbook open event code a 2nd time, it all works perfectly. No idea.....


    The PC in question is an 8 year old Dell 3Ghz running 1Gb of RAM and Windows XP Home. Spreadsheet being opened in XL2003. Having the user defrag at the moment cos I don't think it's had one....ever.
    Any ideas?

  2. #2
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Odd paste problem, code pastes into wrong cell.

    Maybe avoid all that selecting

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: Odd paste problem, code pastes into wrong cell.

    Error: PasteSpecial method of range class failed.

  4. #4
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Odd paste problem, code pastes into wrong cell.

    Is the sheet protected?

  5. #5
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: Odd paste problem, code pastes into wrong cell.

    No. Neither the target sheet nor the source sheet. Other sheets in the workbook are though.

+ 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