Тёмный

How To Import An Excel Spreadsheet With VBA In Access 2013 🎓 

Programming Made EZ
Подписаться 79 тыс.
Просмотров 127 тыс.
50% 1

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

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 238   
@ProgrammingMadeEZ
@ProgrammingMadeEZ 5 лет назад
Looking for DAILY content? Join us on my other channel “Coffee With Steve” for daily videos where we discuss Technology, Software Development, Politics, Culture, and many other things. Coffee With Steve: ru-vid.com/show-UCeXAUvo5xxDY_b-lSknPC1A
@muthurex7630
@muthurex7630 3 года назад
Hi.. I have one doubt.. How to consolidate multiple workbook and worksheet using ms access..can you guide me
@shutiantan2543
@shutiantan2543 7 лет назад
This is the best of the best VBA tutorial that I have ever seen. It's step by step and the instructions are clear. You saved my graduation project, thanks man.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 лет назад
I'm glad to hear it!
@peterbieker5550
@peterbieker5550 4 года назад
One of the best tutorials for Access VBA I ever have seen. Very simple and excellent step by step explanation. Great
@MeninodeValpoi
@MeninodeValpoi 5 лет назад
Excellent tutorial Mr. Steve Bishop. I wish you had another one just to append records to that table created first time so that I could do things that way for the office that I work for.
@viktoriah2012
@viktoriah2012 6 лет назад
This is LEGIT the most helpful access how to I've watched! thank you so much for putting out quality tutorials!
@jillbloomer819
@jillbloomer819 6 лет назад
I love this! He went fast, so I did not have to sit an wait.... and I could always pause it if I needed to slow it down. The explanations are so GREAT! I am not well versed in vba, so this was perfect! Steve should be a professor! :)
@frodeloken
@frodeloken 8 лет назад
A pedagogic, intuitive and good tutorial. Thumbs!
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
Thank you!
@allanmiranda3998
@allanmiranda3998 7 лет назад
I have a question, what if we get a file that has more than one sheets, how do I get the data from sheet 2 for example?
@stefanbatory2984
@stefanbatory2984 4 года назад
Hi Steve, one word of comment: great! Thank you for this explanation and good and simple example.
@pramodpandey1772
@pramodpandey1772 3 года назад
Thanks for sharing this valuable knowledge. I was wondering for this only since long. Finally I got it. Thanks a lot once again.
@roberthyde8147
@roberthyde8147 6 лет назад
This is very well done including setting up the references which can be easily overlooked, and cause issues.
@otskims
@otskims 3 года назад
You are good teacher
@greghalliday4226
@greghalliday4226 8 лет назад
Another great vidoe Steve. One thing to consider in the filter settings is to include "*xlsm" and"*.xlsb" files. The second is not very common, but many data collection spreadsheets are macro enabled.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
+Greg Halliday Great suggestion!
@mahmoudibrahim6061
@mahmoudibrahim6061 2 года назад
Absolutely amazing, thanks Steve for the amazing tutorial
@Infoyaya65
@Infoyaya65 6 лет назад
Es lo mejor que he visto en toda mi vida en VBA en macros en Access mil gracias por el ilustrativo.
@pegasusx1076
@pegasusx1076 11 месяцев назад
You just made my day bro...great, thanks 👍
@crazyfox3898
@crazyfox3898 6 лет назад
Great video. THANK YOU. How to append new data to existing table from excel file?
@NvrGvUpEvr
@NvrGvUpEvr 5 лет назад
Omg - To the point... Top notch explanation... Thank you Sir!
@aqeel506
@aqeel506 5 лет назад
Hi Steve, an excellent video. I was looking for exactly same thing and all scenarios I found in a single video ... thanks a lot!
@iamzombie9889
@iamzombie9889 2 года назад
Thanks tNice tutorials helps alot man!!
@itz_vulego._.7941
@itz_vulego._.7941 4 года назад
save me alot of time, had to figured out how import just 1 sheet
@paulpurpura191
@paulpurpura191 6 лет назад
Steve, an absolutely amazing video.
@aminlotfi1697
@aminlotfi1697 6 лет назад
hi dear steve that was so good , I just have a question. when i click on import Spreadsheet button it works with no error and microsoft access make a table , now if i click on it one more time the table duplicate , how can i prevent this action? how should i change codes? i will preciate if you can help me on this . can you make a video about how to append data from excel to access table in the same way? thanks and sorry for my english
@saipansaru
@saipansaru 4 года назад
I would also like to learn how to do this. So like, If i wanted to import data from excel into an existing table in Access, how do i program that?
@RebecaStCin
@RebecaStCin 3 года назад
If you change tableName to the actual table name in Access, it appends the data rather than creating a new table. That's how it worked for me anyway 🤷‍♀️ Be mindful of the existing records already in the table
@alexkayful
@alexkayful 7 лет назад
This is the best video tutorial.
@nlsanchez0828
@nlsanchez0828 7 лет назад
Thanks for this tutorial! it was exactly what I was looking for.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 лет назад
I'm so glad to hear it!
@FritziFenwick
@FritziFenwick 4 года назад
Hi Mr. Bishop Thank you for all the videos. Could you make a small video explaining how to export access query with begining date and ending date criteria to an existing file in excel. Thanks a lot
@aymanalansary7235
@aymanalansary7235 Год назад
Excellent lecture
@stevetaylor9574
@stevetaylor9574 5 лет назад
Hi Steve, Very new to VBA - im pretty clued up on Excel Formulas and Power BI DAX but never really dabbled VBA. I have spent a few weeks looking for a CLEAR step by step guide on how to not only write vba to import from Excel to Access but also explanations of each step along the way. I have found this video super informative and wanted to thank you for taking the time to make such an easy to follow guide. I do wonder though - this method "Pulls" data from Excel to Access - do you have any videos on how to Push from Excel to the Access database at all.... Essentially I have around 20 spreadsheets for different customer account ( helpfully the columns are not in the same order either ) and I wish to add these files into a master access DB by adding a macro button onto each file so users just click " send to DB" after completing a line - further caveat, this needs to only "Push" the last used roq and not the entire table. I also need the flexibility to say that on spread sheet 1 Column A = first DB column but on spread 2 column D for example = first DB column. I imagine I would have to write custom ranges into each VB code on each sheet to achieve this,,, Sorry for ranty comment but any assistance would be GREATLY appreciated, Thank you again for the great vid Steve! From Steve!
@inforame1051
@inforame1051 3 года назад
Wow that was EXCELlent, even tho it was performed on MS Access You're great
@SoggyCashew
@SoggyCashew 3 года назад
Thanks but one question.. I dont want a bunch of tables so how would I delete the old table if it exists? The method you provided just creates a number at the end of each new table. Thanks!
@amilasampath127
@amilasampath127 4 года назад
Thanks a lot friend.. that was really useful to me...
@lenasmith2394
@lenasmith2394 8 лет назад
Thank you for a thorough explanation. It would be great to see an explanation of appending Excel data to an existing table. Also, I would really like to learn how to append data to multiple tables from a single Excel file. For example, let’s say if I’m storing customer names in one table, in another table I’m storing provinces and a third table contains all orders. Is it possible to append new information to all three tables from a single imported spreadsheet?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
+Lena Smith well once you've imported the whole spreadsheet into a table you can use a regular append query to add the data from your new table to the other tables. Just watch my insert/append query videos for more.
@zimbocb9123
@zimbocb9123 3 года назад
awesome and to the point
@kepidogo
@kepidogo 5 лет назад
This a great video! Do you have video that shows how to import data from an Excel file where you only want data from certain columns that may or may not be in series?
@rebeccaabrahamsson6545
@rebeccaabrahamsson6545 2 года назад
Hi, Thank you for this video! When I import a Excel spreadsheet, is it possible to import it to an existing table instead of creating a new one as "Me.textFileName"? I also wonder if I can map the excel spreadsheets columns to another in the table, for example the column "Amount" should go to the column "Rate" in the table and if a cell is blank it should put in a value as "0"? I have tried to look in your other videos but can not find something like that, if you already have a video for that I ask, can you please link it? Thanks in advance!
@toplearning2995
@toplearning2995 8 лет назад
Thank You! Very good tutorials.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
Thank you!
@rogermilla4472
@rogermilla4472 6 лет назад
Hey, talking about the range of cells in excel to import, how could I select just the columns that I need ?
@neiltanfield4311
@neiltanfield4311 6 лет назад
Excelent demonstartion of VBA in Access. Q If the first row of the excel spreadsheet contains rogue data and the 2nd row contains the column names how do I get access to ignore that first row
@dsvincent676
@dsvincent676 Год назад
nice video tutorial, sir could you please tell me how to import data alreadey exist table, much apreciated if you explain
@diegogrillo1540
@diegogrillo1540 7 лет назад
excellent video!!!! thanks a lot
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 лет назад
You're welcome!
@amirzamani2235
@amirzamani2235 2 года назад
one question if I have a many worksheets and I need to import the worksheet that not be the first of them?
@ruthy08
@ruthy08 2 года назад
I know it's been a few years, but acLink is a good option to create a temporary table if Access is having problems casting the datatype for a particular field. I've found that if you pull it in as a link and then append the data to a table, then destroy the link, it works a lot better. Doing this, you can use a file picker to grab the file name any time you want to import/update
@vemulamahesh7
@vemulamahesh7 4 года назад
Hey.. How to create and import the data into same table always???
@kumarravi4186
@kumarravi4186 5 лет назад
Hi this is very useful to me . Just now I start learning access. I have doubt in this video importing the excel file in separate table for me. Excel data should be import in single table. Can you plz help me on this....!!
@hauc9129
@hauc9129 2 года назад
How can I add the navigation bar you are using?
@juliennyembo862
@juliennyembo862 3 года назад
I tried to import an ".xlsx" extension format but it didn't work, the docmd.TransferSpreadsheet didn't work with that extension, Could U please give me a solution???
@xjl83x
@xjl83x 8 лет назад
Thank you for the video! I've tried using this feature at work, but unfortunately I don't know how I can get it to work with access running via RDP as a remote app. Users are unable to select any files located on their hard drive. Is there anyway around this?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
You would have to set up shared network folders. I recommend discussing this with your IT.
@markpercival6068
@markpercival6068 3 года назад
Unfortunately the Open File Dialog did not function correctly for me with the coding supplied, I entered, checked and re-checked and compiled the coding and it is exactly the same at displayed, with no errors, but I had the peculiar effect of the dialog box opening twice, the first time it did not fill in the text file but the second time it did. After extensive tracking with '"stops" and "msgbox" commands inserted in different locations in the coding I am afraid that I have not arrived at the solution for this weird effect. I was wondering if anyone else has had the same effect. I am running Office Professional Plus 2016.
@abdallahdataguy
@abdallahdataguy 8 лет назад
Hi Steve. Thank you for this good tutorial. I just wanted to comment on using "for each loop" after file dialog. I have been using the file dialog with allowmultiselect=False without for each loop and it works. Did you test that?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
That's what I set it to during the video, but the forloop is a good practice regardless.
@mosjany
@mosjany 6 месяцев назад
Great content surpose i what to import to existing table?
@flrazvan
@flrazvan 3 года назад
Hi, do you have any clips related to unstructured data from a text file? I really want to update the MsAccess app that helps me in the Eu4 game with tons of modifiers that are stored in some files that have structure somehow similar to JSON files. I would really enjoy data mining them using VBA and automatically update my MSAccess tables. Would be really really great if you can do a clip on this topic.
@robertmilani4294
@robertmilani4294 7 лет назад
Very nice video. Thank you.
@laughedmedia6318
@laughedmedia6318 3 года назад
Can you show How import Excell file to existing Table using VBA in Access 2013 ?
@philliploftis9583
@philliploftis9583 8 лет назад
Great video!! Q. how would you use the same method for appending an existing table?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
I would typically not append it to the table directly, but rather run a query afterwards that inserts data from the new table to the old table.
@busecaglioglu890
@busecaglioglu890 4 года назад
I have a question of second part of the import excel spreadsheet document. That is about ImportButton. Here there is a code where I recieve an error while debug it. The debug is signals in Me.txtFileName part. If FSO.FileExists(Me.txtFileName) Then ExcelImport.ImportExcelSpreadsheet Me.txtFileName, FSO.GetFileName Original representation of code is, Private Sub btnImportSpreadsheet_Click() Dim FSO As FileSystemObject If FSO.FileExists(Me.txtFileName) Then ExcelImport.ImportExcelSpreadsheet Me.txtFileName, FSO.GetFileName End If DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "Dyeing", Me.txtFileName, True, strSelectedWorksheetName & "!" End Sub Thank you very much if anyone can answer it.
@londekazoenzimande1105
@londekazoenzimande1105 7 лет назад
Hi, Do you have any Videos on Importing a CSV file? I thought maybe i would use the same method but the problem is that you said "IT HAS to be an Excel file?"
@logancarter3138
@logancarter3138 6 лет назад
Use DoCmd.TransferText acImportDelim
@WVUTOAD1
@WVUTOAD1 7 лет назад
Excellent Video! So if I were wanting to import Excel into an already created table, how would I code it? Also, where would I put the logging code...the very beginning or the end?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 лет назад
Logging can be done anywhere. To import into an existing table, you should follow the same process into a new table. Then run a query to insert all of the records from the new table into the old one.
@WVUTOAD1
@WVUTOAD1 7 лет назад
Thanks for the quick reply!
@techmehul
@techmehul 2 года назад
Right here with ya, bro
@naseemwaziri9018
@naseemwaziri9018 8 лет назад
Hi Steve again! I just could not use /CurrentDb.execute "Drop Table " before importing./ in order to delete the already existed table. could you show us this practically?thanks.
@amirzamani2235
@amirzamani2235 2 года назад
thank you so much
@adamdaban4300
@adamdaban4300 5 лет назад
thanks, sir, after we upload excel file can we rename the table? thanks for given a vba code
@fasching70
@fasching70 6 лет назад
hello I have a question, how can I if I order an exel file and paste into your Access Exel file with your written - How To Import To Excel Spreadsheet With VBA In Access 2013 ??
@josecallejas3549
@josecallejas3549 3 года назад
Hello, I am getting an error code Run-Time err 438...... object doesn't support this object or method... Set diag = Application.FileDialog(msoFileDialogFolderPicker) diag.AllowMultiSelect = False diag.Title = "Escoger Archivo" diag.Filters.Clear diag.Filters.Add "Excel", "*.xlsx" --> here is whe i get the error when I click on the boton. Can you guys help me out??/
@mujtababu50
@mujtababu50 7 лет назад
hello , I can not found the method me.txtFileName Can Anyone help?
@mujtababu50
@mujtababu50 7 лет назад
Never Mind solve it
@newzealandthamilan
@newzealandthamilan 7 лет назад
Hi Mujtaba, I am also getting the same error, Please let me know how you solved it
@billmark5375
@billmark5375 8 лет назад
Hi Steve, every time I import the excel, a new table is created. Please advise how to code such that the content of the access table is deleted and replace by the imported excel file.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
Just do a CurrentDb.execute "Drop Table " before importing. You will want to check if the table exists first though.
@Techreviwer
@Techreviwer 6 лет назад
I have issue with Filter.add And Me. Methods can you help me out with this I Thanks in advance
@dasrotrad
@dasrotrad 7 лет назад
Steve. Thank you for posting this video. I get an error on Me.txtFileName. "Method or data member not found." The intellisense does not recognize this property. I have added the reference to Microsoft Office library 16.0. Can you suggest how to resolve this error? Thanks
@dasrotrad
@dasrotrad 7 лет назад
Steve: I see from the comments below what the problem was. It's resolved. Thank you!
@diamonddave1733
@diamonddave1733 7 лет назад
I am getting a compile error at the "for each" statement. Assist plz.
@fulybrt26
@fulybrt26 8 лет назад
Hi Sir Steve.. what if I import the excel worksheet and has a 5 sheets.. and i need only 1 sheet from this work book?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
That's what the range parameter is for.
@برنامجحاضر
@برنامجحاضر 5 лет назад
Thanks man
@cozak94
@cozak94 6 лет назад
dude u rock
@luismenezes80
@luismenezes80 8 лет назад
Thank you!
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
You're welcome!
@MrIslem21
@MrIslem21 6 лет назад
just awesome
@zencibalina2926
@zencibalina2926 2 года назад
misconceptions that the comnt is supposed to soft like I am in love with Nice tutorialm or sotNice tutorialng.
@AdnanAlbayate
@AdnanAlbayate 8 лет назад
hi, how can add the values from an excel spreadsheet to existing table? very urgent please
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 лет назад
Import the data as I show in the video, then write a query to insert or update the values in another table.
@TheMexico2013
@TheMexico2013 7 лет назад
great viedo
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 лет назад
Thank you!
@abiramimannarmannan2314
@abiramimannarmannan2314 4 года назад
Can You please share the code
@IsHardynafthardynaft
@IsHardynafthardynaft 2 года назад
genious
@fahrifinoza4654
@fahrifinoza4654 2 года назад
The worst tNice tutorialng soone can do after starting is quitting... never give up and the rewards will be greatly appreciated
@bondniko
@bondniko 3 года назад
Not bad.
@mikeymikem
@mikeymikem 6 лет назад
This guy sounds exactly like Steve Jobs
@philliploftis9583
@philliploftis9583 7 лет назад
This is one of the best videos! Excellent Job
@DerDudemitdemHut
@DerDudemitdemHut 3 года назад
I talked myself into being responsible for creating a new database for work, without having any clue about this stuff. You, sir, saved my life with videos like this one. They way you quickly explain every line of code and every expression, even if it's not needed, perfect for beginners and good for general learning! Thank you!
@ProgrammingMadeEZ
@ProgrammingMadeEZ 3 года назад
Great to hear!
@amccoy39
@amccoy39 5 лет назад
Why in Excel 2016, diag.Filters.Add "Excel Spreadsheets", "*.xls, *.xlsx" is giving me Object doesn't support this property or method....Run-time error 438:
@ProgrammingMadeEZ
@ProgrammingMadeEZ 4 года назад
It may not be compatible with Excel, I only wrote this for Access.
@bfan2151
@bfan2151 4 года назад
This great! Thank you! Could you also show how to import multiple Excel files, and also only import the sheet (or Tab) the user wanted?
@olliwest7341
@olliwest7341 3 года назад
Fantastic video!!
@H0LDENSUX
@H0LDENSUX 5 лет назад
Since an Excel spreadsheet can have multiple tabs (or pages), it would of been ideal if the import function called the individual tabs as separate tables into access rather than use the file name as the access db table name.
@HamdiElShahat89
@HamdiElShahat89 4 года назад
This man really is amazing, I hope more programming and data structure tutorials using c#.
@yogeshkhandagale7664
@yogeshkhandagale7664 4 года назад
Very useful for a beginner like me. Nice way to explain each step. I like it. Please keep it up.
@nrashedfate
@nrashedfate 7 лет назад
For few weeks I am watching your videos and this one is really impressive, many many thanks for your extra-ordinary effort.
@thomasvenus1129
@thomasvenus1129 4 года назад
Excellent video! Thank you a lot! One more tip I just figured out: if you want to choose a specific WorkSheet from the excel file, you can write the spreadsheet name with an exclamation mark (e.g., "MyFirstSheet!") instead of leaving the range parameter (8:39) blank.
@ibrahimalghamdi783
@ibrahimalghamdi783 Год назад
Thank you soooo much i was wondering how to do that
@slslama819
@slslama819 Год назад
thank you for this course but when i click browse, display error excution '438' debug in command : diag.Filters.Add "Excel SpreadSheets", "*.xls, *.xlsx" help please
@norachannara
@norachannara 3 года назад
Thanks for the tutorial. It helps me a lot with my work. I have question, what if we import the same file name? can you show how replace the old file name? another question is that I have existing table in Backend file and want to import from from FrontEnd by appending only the new record. Do you have another VDO tutoring?
@davidmazat746
@davidmazat746 8 лет назад
Hey! Excellent tutorial my friend. Thank you :)
@vshah2703
@vshah2703 4 года назад
While compiling it is showing error that "Argument not optional" at "ExcelImport.ImportExcelSpreadsheet" please help
@nani3775
@nani3775 4 года назад
Nice information.... Could you please help me to open pw protected access file using excel vba. I tried multiple ways Eventhough am not getting.. Can you please
@benjaminsart9195
@benjaminsart9195 3 года назад
This tutorial helped a lot but one problem the "Badformat" VBA code conflicts when trying to import an Excel currently opened by another user. Where it wouldn't be a problem I can see where this can be later down. Is there a way to check if file is being imported read only
@MrWish332
@MrWish332 2 года назад
There is "Codician" channel person has copied your code, Video name is "import data from excel to access vba on a click". I believe you should take the action on it. Such deep shit are copying your Codes.
@mccmnazain
@mccmnazain 3 года назад
thanks for this tutorial. it's the best tutorial I've ever seen, and it's very helpful. but I have a problem. if I want to import several excel files on the same access table, it only imports data on the first excel and it does not want to import on the next excel. it doesn't add any more data I need. there is a thoughtful view to this issue. thank you.
@denidjiauw7975
@denidjiauw7975 2 года назад
Ive watched tNice tutorials a couple tis and i tNice tutorialnk the key is to slow the video down to .75. TRY IT!!!
Далее
How To Create A Keyword Search in Access 2013 🎓
24:54
FATAL CHASE 😳 😳
00:19
Просмотров 916 тыс.
EASILY Make an Automated Data Entry Form in Excel
14:52
Most important tools in Excel -  Malayalam Tutorial
17:04
7 Database Design Mistakes to Avoid (With Solutions)
11:29