+ Reply to Thread
Results 1 to 3 of 3

Import data from source to target

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Import data from source to target

    Hello All,
    My Goal is to import data from another workbook (Source) to Active Workbook (Target) while reading through all the "filtered" data on the Source Workbook (Row 13 and beyond to say 5000 rows max) while only importing the Product # (column A on both sheets) and the ordered Qty from the Source Sheet (Column M) to Ordered Qty on the Target (Column D). I've got a limit of occurrences that can occur on the Target Workbook of 501 possible lines of items that can be ordered. Max should be around 300 but, 501 is a safe range for future. Initially everything worked great and brought everything across throughout the entire range of 501 but, it even brought the filtered out blanks data as well (which is what it was spose to do). I need to read through each Product and Qty Ordered from the Source Workbook while skipping that row and going to next if the Ordered Qty is "" (blank)....and most likely filtered not to show. My initial code above does not take into account possible filtered blanks rows in between the ones I tested and I thought of that as I was typing this response so, I'd need to add that in as well. I'm having current issues where noted Error and ****** to note it.
    TIA, khleisure


    Please Login or Register  to view this content.
    Last edited by khleisure; 05-23-2012 at 04:09 PM.

  2. #2
    Registered User
    Join Date
    04-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Import data from source to target

    Moved Query/Question to precede posted code above
    Last edited by khleisure; 05-23-2012 at 04:14 PM. Reason: added query to code in above post to start thread

  3. #3
    Registered User
    Join Date
    04-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Import data from source to target

    Well, I think I solved my own riddle and really not surprised I did not get any responses here as I'm sure I was too wordy above and not clear what I wanted to really accomplish however, thus far, the below code does what I want it too and still testing a few mock scenario's. I tried to use a varied range for the Source Workbook by row counting the source but, kept getting the error noted and left in the code along with the code lines I left as comments where the error was occurring. If anyone can help solve the line where the error occurred, the overall loop should work for a varied range of Source Workbooks while still maintaining my 501 import limit however, thus far, I've set the limit on the Source data to be read at 3000 lines. I will probably increase that to 5000 pending the largest product file from the factories I'm currently using. I know one is a doozie but, cant remember how many total products currently? Feel free to comment as I'm sure there's much quicker/simpler ways to do what it is I did below?
    TIA, khleisure

    Code that seems to be working thus far is below and modification of above for what I wanted it to do.

    Please Login or Register  to view this content.

+ 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