+ Reply to Thread
Results 1 to 3 of 3

Recordset cross referencing spreadsheet data not updating missing values

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Recordset cross referencing spreadsheet data not updating missing values

    I have created a recordset to open a spreadsheet (xl1/rs1) and compare certain ranges against the spreadsheet I am running the macro from (xl2/rs2)

    If spreadsheet 1 has been worked on I would like spreadsheets 2's columns H:K to be updated to match the info in spreadsheet 1.

    The recordset seems to run fine but it doesn't update the second spreadsheet with the values in spreadsheet 1.

    If anyone has any ideas why this is happening I would be extremely interested to hear their thoughts on the matter.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Recordset cross referencing spreadsheet data not updating missing values

    I have just stepped into the code attempting to see what happens line by line and I noticed something during the Do until/loop section. In VBA editor in the top right is shows Ln26, Col 1. This only seems to change to Ln26, Ln27, Ln28 & Ln29 (Col 1 stays the same).

    Does this mean something, is it not looping all the way through the spreadsheet and is just stuck on these rows hence no values being pulled through?

    Ignore this, I've just just realised this is the code lines it is running through (Doh!)

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Recordset cross referencing spreadsheet data not updating missing values

    After some investigatiing it would appear that it isn't the case that no values are being selected it appears that values from different lines are being added removing data from spreadsheet 1 and putting the data on different lines (rs2 line 62 is on rs1 line 52 etc).

    I think I have created the code to create a list rather than replace the data on specific lines. Anmy ideas how I can make sure the data pulled from rs2 is placed on the corresponding line as rs1?

+ 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. formula for cross referencing partial match and returning values from 2 columns
    By 5thgenbliss in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2013, 04:11 PM
  2. Cross-referencing lots of data?
    By IsaacsLaughing in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-24-2012, 08:57 AM
  3. Cross Referencing Cells to input values
    By whinston in forum Excel General
    Replies: 3
    Last Post: 08-04-2009, 09:56 AM
  4. Data cross referencing
    By Biljana Pesevsk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2007, 05:15 AM
  5. Cross referencing data across different workbooks
    By Luke in forum Excel General
    Replies: 3
    Last Post: 08-08-2006, 05:25 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