No problem. Since the batch number, the end has the letter "K" the code search this number, regardless of the number of characters. The other issue: To use this code in another workbook, you need -> Press Alt + F11, click on "Module1" and copy the entire code. In another workbook, do the same thing (Alt + F11), click on the INSERT tab, select the MODULE menu, click 2 times the created module, and paste the code. To run, the worksheet press ALT + F8 key and select the macro "GetData". IMPORTANT: For this code to work, the data from another workbook, must be in the same columns and rows from the previous. Another thing: the code which is written "Worksheets (1)" and "Worksheets (2)", you must change the numbers in parenthesis according to the numbers of the new workbook.
Basole. Em quarta-feira, 8 de janeiro de 2014 11h18min26s UTC-2, Tom Yaxley escreveu: > > > > Hi All Experts, > > I am looking to copy individual rows of data from one spreadsheet > which are separated by a varying amount of other data. > It is also changing every day via a set of IF functions which pull data > daily from production spreadsheets. > They are also not in order either... > the rows appear as such: > 001K > 002K > 003K > 006K > > (varying number of rows) > > B004K > B005K > B007K > > etc.. > > they need to become: > > 001K > 002K > 003K > B004K > B005K > 006K > B007K > > is there anyway to do this? (i cannot post the spreadsheet as it is > confidential data) > Thanks > Tom > -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/groups/opt_out.