Тёмный

Automate Data Extraction Without Opening Destination Workbook 

Dinesh Kumar Takyar
Подписаться 115 тыс.
Просмотров 223 тыс.
50% 1

Our Excel training videos on RU-vid cover formulas, functions and VBA. Useful for beginners as well as advanced learners. New upload every Thursday.
For details you can visit our website:
www.exceltrainingvideos.com/a...
In today's video we learn how to automate data extraction without opening destination workbook using Excel VBA. The concept can be used to get data from multiple workbooks into a new workbook. We can also get data on to user-forms automatically.
Get the book Excel 2016 Power Programming with VBA: amzn.to/2kDP35V
If you are from India you can get this book here: amzn.to/2jzJGqU

Опубликовано:

 

18 дек 2013

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 104   
@jorgevalentin4756
@jorgevalentin4756 10 лет назад
Thank you for this video. What a privilege to have you doing this videos.
@digital_whispers
@digital_whispers 8 лет назад
This is realy helpful good sir. pls keep it up!
@philwongnz
@philwongnz 10 лет назад
Hi there, If I understood your code correctly, you simply open the workbook, find something and then closes it. The only caveat is, the user don't see the workbook been open as you have turn the screen updating off. This is not very useful when I literally don't want to open the workbook as the size of the workbook can be rather large and it will take a long time if you keep opening and closing the workbook like how you had advised.
@jonascampos5564
@jonascampos5564 4 года назад
any solution?
@kenjisan7237
@kenjisan7237 3 года назад
@@jonascampos5564 ADO and data structure planning.
@Exceltrainingvideos
@Exceltrainingvideos 9 лет назад
Complete VBA code for this video available here: www.exceltrainingvideos.com/automate-data-extraction-without-opening-destination-workbook-excel-vba/
@DarkProphetTV
@DarkProphetTV 7 лет назад
Hi Takyar, I have like (300+ files in .iqy format) that has filename as sheetname whenever opened. The content of the iqy file is a website wherein it extracts the data to excel whenever it is ran. Would you be so kind to create a code that can bypass the name of the sheet to copy whatever the contents to a specific file?
@sampajuj8
@sampajuj8 10 лет назад
Hi, how can I automate the data extraction from different sources in order to make a centralized database on excel?
@vnb10kke
@vnb10kke 10 лет назад
1.Is it run the macro run auromatically? means when i open the workbook the "what do you what search for " should come automatically. 2.column header HDD, 3 values for this hdd in 3 rows, i want extract only one means first row only . Is it possible?
@kennethlopez8232
@kennethlopez8232 8 лет назад
Sir I tried this VBA just want to know if there's multiple same entry name can we extract them all? or just the unique one?
@desirekane5977
@desirekane5977 8 лет назад
Thank you in advance for your assistance :)
@ashab.guddaiah6922
@ashab.guddaiah6922 9 лет назад
Hi Sir, I need a help For Ex : Row and Columns have some Data i need to extract the particular Row and Columns which has number more then "10".
@balajir171
@balajir171 8 лет назад
Sir, I have one development file and 10 user files, every time i am moving the codes as a copy paste to all the ten files (8 Modules and many Click events and Change events). Is there any other ways to simplify this job, I cannot replace the files, since it has more data, so please let me know the better ways to move the codes from one file to other files via VBA itself.
@desirekane5977
@desirekane5977 8 лет назад
I have a workbook that contains information we need for Data entry in another system. how would one use this macro to find the line and then show the whole row of information, rather than doing it cell by cell. When it is not an integer but test do you program it as a range?
@beenay18
@beenay18 Год назад
can i run excel in system tray and display just the user form on the screen? I don't want the users to mess up the excel file. I just want to get the job done via user form like standalone app.
@NohandleJ
@NohandleJ 7 лет назад
how would I go about extracting certain data ( Name and ID number) from a program called reflection and have it entered into excel?
@technicallyspecific238
@technicallyspecific238 5 лет назад
LOVE IT!! SO EXCITED IT WORKS! How would I retrofit it to look in that other workbook, locate a *specific named sheet* "AcctgDept", then locate a *specific column name* "Tot_Inventory", then jump to the *last row of that column* and extract the Summed Total that's sitting in that last cell? (using your other macro to place those totals in that other sheet first, then I would run this one to go extract specific totals needed in this Master workbook???
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Thanks for the feedback. Please search www.exceltrainingvideos.com
@ravishekar584
@ravishekar584 7 лет назад
sir in below code(transfer specific data to specific worksheets) data transferring one row below in every page from mydata page row 3,col 2 and row 3,2 is coming in row 2,col2 row2,col2 in another page (i want to row2 in row row 2 in seprae sheet)
@EduFeastFamily
@EduFeastFamily 8 лет назад
Hello again, would you help. how to extract database from ticketmaster.com (price, seat...)? thank you sir.
@olaoluwaafolabi8013
@olaoluwaafolabi8013 9 лет назад
Emails ain't coping alongside the data posted on Excel. How do I fix that?
@accnotech3863
@accnotech3863 6 лет назад
Sir, I tried your codes and it works perfectly, the only problem i am facing is that I want to Extract data from multiple sheets of source file. and data of goal cell will be shown in each such sheets, so extracting of such data would not be a problem i guess. Please help me with codes,
@MegaBanky007
@MegaBanky007 8 лет назад
How do I count rows from multiple workbooks with filtered sheets and have different last row please? I want VBA to count just the visible rows without having to start from row 1 all through.
@SalmanKhan-pm2zm
@SalmanKhan-pm2zm 2 года назад
What variable type should I use for extracting data like employee Id =40166041 against a person ID=201200? Thanks in advance
@alboggie1978
@alboggie1978 9 лет назад
hello im working on a project and ive create a workbook in which i place data into a worksheet known as "processing" which serves as a main page in which i process detaied information from column A-L...i also have i another worksheet in this workbook label master and this is copy of everything thats ever been processed from my "processing" sheet..my goal is to create a macro which move the data from "processing" to "master" thru a submit button and then clear the data from "processing" so that i may start a fresh new batch but yet still hold history in the master sheet!!
@call2khet
@call2khet 9 лет назад
thx for teaching me
@johnwatkins39
@johnwatkins39 7 лет назад
perhaps do the samething i mentioned earlier but make an update info from another worksheet.
@paragshah2742
@paragshah2742 5 лет назад
Mr. Dinesh Takyar Can you please show VBA code, How to copy only last row from closed csv file to new excel workbook. Parag Shah. Thank you
@carlmiller5850
@carlmiller5850 2 года назад
Thank you Dinesh, very helpful indeed. Just a question, if a user does not have access to the "source file", can he still run the macro that is in the "destination file" to update the file? thanks.
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
Try this tutorial: www.exceltrainingvideos.com/how-to-edit-multiple-excel-files-in-a-folder-automatically/
@Eugenesng91
@Eugenesng91 8 лет назад
Hi i have to extract certain cell and paste them into other cell. i have 1000 work book to complete. can what u are teaching help me to achieve what i need?
@musthagmohamed
@musthagmohamed 3 года назад
Hi, Thank you very much for reading this comment. This tutorial is very very easy to understand and extremely helpful. I have a query and here is my situation. I have an excel file of size more than thirty MB and it can be accessed using the network and it keeps growing in size, every day. More than five users are actively using the file, on most of the day. Some of my users complain that when the file is opening and saving it is slow due to the network being slow. Hence, I need a solution for this. I have two solutions in my mind. Firstly, create a local file to each remote user and let them add their data and sync with the main file in the network when they close or click a button to update the main file. Secondly, add data to excel file in the network without fully opening the file. Do you have any suggestions? Thank you in advance and have a wonderful day.
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Are you using 32 bit systems or 64 bit systems? You can always improve your network speed by adopting appropriate measures. This is a good idea: create a local file to each remote user and let them add their data and sync with the main file in the network when they close or click a button to update the main file. Other options like MS Access database can be very useful.
@simplenglaog33020
@simplenglaog33020 9 лет назад
you open the workbook literally in your code, the only reason the user can't see it is because you turn off the screen updating.
@praveenbehera1307
@praveenbehera1307 8 лет назад
Exactly @Avelard, I could figure out that. Screen updating is set to False which is why user coudn't see the workbooks. (y)
@brucesedlacek4347
@brucesedlacek4347 7 лет назад
HI📌 📌 📌NOW 📌YOU CAN 📌 CHECK MY website :BOL7 on google 🥇🥇,here is new Updated Data Extractor Software. or skype : Hemant_136
@vegasvato55
@vegasvato55 9 лет назад
I would like to see how to make my whole Excel application work book to be invisible until I enter a user id and password into a dialog box on application start up...
@kamatchinmay
@kamatchinmay 3 года назад
Look for workbook.ProtectSharing method
@albertbaz1544
@albertbaz1544 9 лет назад
How can I get a copy of your codes? that you are showing in your videos?
@Manas1990_Vlogs
@Manas1990_Vlogs 7 лет назад
Hi Dinesh Sir, I want to Extract sheet one data from a closed workbook to sheet 2 in the current workbook with a single button in sheet 1 current workbook
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
Attach your macro to a button using a command button from the form-controls.
@TableauMarvel
@TableauMarvel 8 лет назад
hello sir, this is bhargav reddy from Bangalore. please tell me how to transfer the data from workbook to new workbook, is it possible to write code for that please help me sir, i am new to to vba please give me some easy tutorials if you have thank you.
@rajuj6868
@rajuj6868 8 лет назад
Dear Dinesh sir .your upload very useful and easy to understand. sir I want to copy data in a particular rows from 100 different excel files in to new single excel file ,edit and put back the data in 50 excel files in the same row. All my 50 files use same excel format . Can you please explain. I am engg. Awaiting your reply. Thank you regards
@Exceltrainingvideos
@Exceltrainingvideos 8 лет назад
Check out this link: www.exceltrainingvideos.com/copy-paste-multiple-rows-of-data-from-one-workbook-to-another-using-excel-vba/ or do a search at exceltrainingvideos.com
@sasa21kumar
@sasa21kumar 4 года назад
Hi sir, I have a personal macro workbook and I have assigned a shortcut to it. If I press that shortcut it will automatically create PDF with same properties of Excel like name and path. But shortcut is not working when I open a Excel for first time. I want to go vb editor and run that personal macro. After that if I open 1000 new excels also this shortcut is working. How to make that shortcut to work from first time itself
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Can you share your code?
@mjmrilwan
@mjmrilwan 8 лет назад
the way you describe the subject , i would say with one word " the Master"....
@dougrobinson2024
@dougrobinson2024 5 лет назад
that's two words
@naderabdussalam75
@naderabdussalam75 7 лет назад
Dear Dinesh, I am following your steps but I think I'm missing something as when i run the macro i get error message says the file could not be found in the pat. So can you help me please?
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
Check the path to your file carefully.
@narvinolan7858
@narvinolan7858 9 лет назад
How about adding the not found data?
@johnwatkins39
@johnwatkins39 7 лет назад
what if i wanna pull data from a worksheet from inside the current workbook. i wanna copy data from sheet 3 and paste into sheet 1. how do i do it.
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
Check out this link: www.exceltrainingvideos.com/methods-to-transfer-data-from-excel-worksheet-with-vba/ for more free resources search at: www.exceltrainingvideos.com
@steprajs
@steprajs 4 года назад
Hi Sir, I need guide/help on transferring data from one excel (daily updates) to another (Protected workbook) excel automatically, Let me know is that possible ? If you have link please let me know, it will great full to my routine work. Thanks in advance!
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Search www.exceltrainingvideos.com/ or this RU-vid channel goo.gl/5Jx1NP
@jeffjones9299
@jeffjones9299 10 лет назад
I have a request. is there a way too make a VBA macro that will extract tables from a website. for instance when the table is broken up between multiple pages. I would like to have it to where it would only extract data tables and nothing else from the page. This is one of the websites I am interested in getting data from: www.scdhec.gov/administration/vr/vrdi/vrlist.aspx?c=-&pagenum=1 Can you help me with this scenario?
@ethec100
@ethec100 9 лет назад
How to extract data from sheets that are made different each day , and the name of the sheets are for ex 2-28-14 ,3-1-14,3-2-14 ex
@scrump1338
@scrump1338 9 лет назад
What code would I write to use a dropdown or lists instead of an inputbox?
@Exceltrainingvideos
@Exceltrainingvideos 9 лет назад
Stephen C. Adding and using a combobox on a userform in MS-Excel:@AWWKAWttuiU
@scrump1338
@scrump1338 9 лет назад
Dinesh Kumar Takyar Thank you for this! However, I think I said the wrong thing. I would like to use a "dropdown" menu instead of an "inputbox". The inputbox code I have is; Sub finddata() Dim GCell As Range Dim txt$, MyPath$, MyWB$, MySheet$ Dim myValue As String txt = InputBox("What do you wanto search for?") When the user runs the macro, I want a dropdown box to appear with a list of options from column A, and depending on which options they choose, the macro will pull over the data from column A AND the adjacent column B.
@rajveermaida1786
@rajveermaida1786 3 года назад
How to submit some selected data from one userform to multiple sheets
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
This VBA tutorial in Excel will help: www.exceltrainingvideos.com/transfer-data-from-user-form-to-multiple-worksheets-in-excel-workbook-using-vba/
@harryrawat2116
@harryrawat2116 5 лет назад
Hi sir, I want to know how to define days and date if I have date and days in one cell....like Cells("A1"). value= Sunday 27/1/19 I need this cell value to be another cell ... please let me know
@Exceltrainingvideos
@Exceltrainingvideos 5 лет назад
Range("A1").NumberFormat = "dddd, mmmm dd, yyyy" Range("B1").Value = Range("A1").Value
@Exceltrainingvideos
@Exceltrainingvideos 5 лет назад
Enter the date in Range A1 in your format and run the code.
@harryrawat2116
@harryrawat2116 5 лет назад
@@Exceltrainingvideos thanks you so much sir What if I need to add one day with date and days but another cell how do I do that... please let me know
@frankiecoco767
@frankiecoco767 9 лет назад
how to extract the data from specific sheet?
@Exceltrainingvideos
@Exceltrainingvideos 9 лет назад
Frankie Coco www.exceltrainingvideos.com/copy-data-to-another-excel-workbook-based-on-criteria-using-vba/www.exceltrainingvideos.com/copy-data-from-one-workbook-to-another-to-a-specific-worksheet/www.exceltrainingvideos.com/extract-data-from-one-excel-worksheet-to-another-using-advanced-filter-with-vba/www.exceltrainingvideos.com
@deepuhatti5833
@deepuhatti5833 5 лет назад
HI SIr,, thanks for update, have done the code , but having some error, can you please share mail id so i can send the file ,
@Exceltrainingvideos
@Exceltrainingvideos 5 лет назад
This link will help: www.exceltrainingvideos.com/automate-data-extraction-without-opening-destination-workbook-excel-vba/
@ellinsbchen1604
@ellinsbchen1604 9 лет назад
after create the use form it can only run in excel? after i close the form i can not find the form again why?
@Exceltrainingvideos
@Exceltrainingvideos 9 лет назад
ellinsb chen You should save your file as 'macro enabled'.
@reeteshism
@reeteshism 4 года назад
Hello there. Is there a possibility that the VBA code extract the data just with the destination file name, without the path of the folder where the destination file is??
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Did you try that?
@reeteshism
@reeteshism 4 года назад
@@Exceltrainingvideos no i haven't tried it yet.
@reeteshism
@reeteshism 4 года назад
@@Exceltrainingvideos wanted to check first whether it will work or not
@frankiecoco767
@frankiecoco767 9 лет назад
need help, how to replace the inputbox with combobox?
@mikeramirez7634
@mikeramirez7634 9 лет назад
Crew l min b b.s. byybq.cfc xft cfc vCard f lookup Nunn v g vg bcc .
@exogendesign4582
@exogendesign4582 4 года назад
I've been watching all your videos, but I don't know why it doesn't work on my project your code is simple so I can understand it easily, but it always give error. its like your code only works individually and can't work dynamically. I don't know why.
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Query not clear. Can you share your file or VBA code?
@pankajsbi3005
@pankajsbi3005 4 года назад
How to subtract 2 digits in excel userform
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
This VBA lesson will guide: www.exceltrainingvideos.com/how-to-add-numerical-values-via-text-boxes-in-userform/
@aprildu2056
@aprildu2056 8 лет назад
@castor325, are YOU on drugs!? clearly everyone knows what the video is about. You had to show you know better?! Why don't you go make your own video?!
@manpreetjuneja4265
@manpreetjuneja4265 8 лет назад
+Chunxun Du +castor325 isn't wrong at all on his statement. This codeline is where u open the workbook < Workbooks.Open Filename:=MyPath & MyWB > and closing it off here < ActiveWorkbook.Close >. Note: 1# Only method i know of that would do what the title of this video suggests would be through creating an ADO connection and running a query to destination workbook. 2# Also opening (current method) destination workbook without read only would get u in trouble if the file is already open by an another user. 3# Closing destination workbook with an Activeworkbook statement would be a bad practice too (use ur logic). 4# Lastly YES! he was wrong about his language.
@loveloveonly6964
@loveloveonly6964 3 года назад
Suggest me a solution for following code Sub Test() Dim template As Workbook Set template = Workbooks("D:\Users.xlsm") End Sub After run this code error pop-up subscript out of range
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
What are you trying to achieve?
@loveloveonly6964
@loveloveonly6964 3 года назад
@@Exceltrainingvideos Users.xlsm already running excel i need to active that excel with file path("D:\Users.xlsm")
@JohnDoe-fz5xo
@JohnDoe-fz5xo 9 лет назад
Better yet use R and move away from ever using Excel
@sebastian1200
@sebastian1200 3 года назад
The title says „automate data extraction without opening workbook”. The title in my opinion is not right because you open the workbook in vba code. Of course you turn off screen updating so It’s not shown on the screen but you open it anyway. As far as I know it’s not possible to export data from one workbook to another which is closed without opening it in vba code. What you can do is to import data from another closed workbook without opening it in vba using ado library.
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
You have a point. This Excel VBA tutorial will guide: www.exceltrainingvideos.com/automate-data-extraction-without-opening-destination-workbook-excel-vba/
@Xlorate
@Xlorate 3 года назад
"Without Opening Destination Workbook"?, you ran the code from the destination workbook, it had to be opened.
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Without opening manually! This link will help: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OnhqCSLW-cs.html Use the keyword 'closed' to search for more solutions on my channel.
@D3_Business_Analytics
@D3_Business_Analytics 8 лет назад
100 lines of code to find a single value from another workbook . that can be done with a singe Vlookup macro....Come on !!!!!
@Exceltrainingvideos
@Exceltrainingvideos 8 лет назад
?
@kennethlopez8232
@kennethlopez8232 8 лет назад
Sir I tried this VBA just want to know if there's multiple same entry name can we extract them all? or just the unique one?
@Exceltrainingvideos
@Exceltrainingvideos 8 лет назад
You'll have to use a looping process and an'IF' condition. The following link explains the concept: www.exceltrainingvideos.com/copy-data-to-another-excel-workbook-based-on-criteria-using-vba/ Or, you can do a search at exceltrainingvideos.com
Далее
VLOOKUP Using VBA
21:23
Просмотров 302 тыс.
How to Combine Multiple Excel Files using VBA
19:06
Просмотров 32 тыс.
Schoolboy - Часть 2
00:12
Просмотров 4,3 млн
Excel Time-Savers - 5 Hidden Features for Busy People
14:24
VBA Macro to Copy Data from Another Workbook in Excel
13:39