+ Reply to Thread
Results 1 to 2 of 2

Random rows being overwritten on 'data store' workbook after copying from input workbook

  1. #1
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2010
    Posts
    13

    Random rows being overwritten on 'data store' workbook after copying from input workbook

    Hi All,

    I have a problem with something I created using all the tips you guys have provided from the forum.

    I have two workbooks; one for inputting quality assurance scores and one which has the scores stored. They are copied over using a simple bit of code
    “Windows("Main.xls").Activate
    Range("B4").Select
    Selection.Copy
    Windows(" DataStore.xls").Activate
    Range("E" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues”
    I use this as each cell corresponds to a cell on the data store workbook, but has to be on a separate workbook due to sensitive information used in the check.
    The process works 95/96% of the time but it seems randomly when checks occur instead of finding the next available row in the data store, it selects a random row and overwrites that. This has happened to 3 rows a total of 4 times (twice on row 51) out of 220 checks.
    What on earth could be causing such weird and unpredictable errors?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Random rows being overwritten on 'data store' workbook after copying from input workbo

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-gene...-workbook.html

    Thread Closed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copying specific rows from workbook containing data to a template workbook
    By mattyp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2014, 10:06 AM
  2. Open random workbook,new workbook and copy some data.
    By nemo74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2013, 11:34 AM
  3. Input data in one sheet and store data in another workbook (Macro)
    By Sabzero786 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2012, 06:10 AM
  4. [SOLVED] Copying specific rows from an open workbook into the next row of a closed workbook.
    By Deimola in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2012, 12:59 PM
  5. VBA button to store data from 1 workbook and paste it in another UN-opened workbook
    By mountaineerhughes in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-26-2012, 11:39 AM
  6. Append Data From One Workbook to Another Workbook (Consolidate Random Columns)
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-23-2010, 01:15 PM
  7. Replies: 2
    Last Post: 05-26-2006, 06:30 PM
  8. Replies: 1
    Last Post: 04-01-2006, 03:50 PM

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