Auto run vba project When an Excel Workbook is opened

  Рет қаралды 96,591

Dinesh Kumar Takyar

Dinesh Kumar Takyar

11 жыл бұрын

How to auto-run a VBA project when an Excel workbook is opened. A simple but profound question whose answer is not easily available on the internet or Google as experienced by Alex. The answer is simple - first create your macro, then add a single line of VBA code to 'ThisWorkbook' in the VBA editor that accesses the macro when the workbook is opened!
You can view more details here: www.exceltrainingvideos.com/h...

Пікірлер: 88
@robulyatt1986
@robulyatt1986 11 жыл бұрын
Very good video just what i was after, Clear and easy to understand. THANK YOU
@rahulbanerjee33
@rahulbanerjee33 4 жыл бұрын
Oh man! Thank you so much, I had been searching for this for so long!
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Thanks! Please share with your friends and on social media. You can view more videos in Hindi and English at www.exceltrainingvideos.com/
@tuxmatrix
@tuxmatrix 2 жыл бұрын
You sir are a legend. I've spent hours looking for this. Everybody does the message box but no one had explained how to make the call upon opening! thank you so much!
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Glad I could help. Please share my KZbin channel on Excel with your friends too.
@kiranbn7748
@kiranbn7748 7 жыл бұрын
thank you so much, you saved my life :)
@sandeepkumar-cx4or
@sandeepkumar-cx4or 6 жыл бұрын
Thank you very much sir God Bless you sir live long and teach us for long time ............
@narendrangananathar8107
@narendrangananathar8107 2 жыл бұрын
Your Talent, knowledge, and help are greatly appreciated. Awesome!
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
I appreciate that! Please share my KZbin channel on Excel with all your friends. You can also find more interesting solutions in Excel in different languages at www.exceltrainingvideos.com/.
@materenemolaoa1752
@materenemolaoa1752 6 жыл бұрын
Thank you so much for your help.
@JanKowalski-hk5cg
@JanKowalski-hk5cg 2 жыл бұрын
What can I say, I benefit from Your videos a lot . Tank you for making these tutorials.
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Thanks!
@sarvok5692
@sarvok5692 3 жыл бұрын
Thank you! This was very useful and explained it really well!
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
Glad it was helpful!
@javierenriquehernandezacev9382
@javierenriquehernandezacev9382 8 жыл бұрын
Thanks it worked!. Muchas gracias
@hemendravakharia2502
@hemendravakharia2502 5 жыл бұрын
Thanks a lot sir. It works superb.
@Rajan-kk8nl
@Rajan-kk8nl 3 жыл бұрын
Very very useful sir. Thank you sir.
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
So nice of you
@williamjohnson3711
@williamjohnson3711 6 жыл бұрын
Thank you!
@tejaswiniwaghchaure6794
@tejaswiniwaghchaure6794 3 жыл бұрын
Thank you so much sir for Sharing this .. very thank full to you..
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
Most welcome
@emile1661
@emile1661 4 жыл бұрын
This is a tutorial from 2012, and hard to believe that this (in 2020!) is my answer to a simple question (if you know the trick) for automatically run multiple macro's when opening a workbook. Which means; - Dinesh is (always) educational! - I cant google - It might lack of tutorials at other "Excel-mvp's". Thanks Dinesh.
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Thank you! Please share the Excel VBA tutorial with your friends too.
@AliGhasemnezhad
@AliGhasemnezhad 8 жыл бұрын
Tkank you Mr.
@Angelatino2011
@Angelatino2011 4 жыл бұрын
very good. simple and works
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Thanks for the feedback.
@vineetjain8354
@vineetjain8354 4 жыл бұрын
Superb video....👍👍👍
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Thanks 🤗 Please share with your friends too.
@eieichitsu9722
@eieichitsu9722 7 жыл бұрын
Thank u
@marcosbertozzo3193
@marcosbertozzo3193 4 жыл бұрын
Thanks!
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Welcome! Please share the Excel tutorial with your friends too.
@goddest84
@goddest84 8 жыл бұрын
Thanks!!!..now i automatically call my macro hide_ribbon when i open my excel project..thanks a lot.
@Exceltrainingvideos
@Exceltrainingvideos 8 жыл бұрын
+Julius Laurella Did you subscribe to my channel?
@Dodo0255
@Dodo0255 8 жыл бұрын
I just create a digital clock and he run when i open my workbook (like you have explained in this video). The problem is when i open another excel file or more excel files, my digital clock appear there in that files in the same cell. How can i make to run my digital clock just in one excel file? Thanck you!
@sharepoint4569
@sharepoint4569 6 жыл бұрын
sir how to auto refresh the excel data that excel sheet located in cloud (on-drive)(with out opening excel file ) please help me
@mirwoeesahmedkhuraishi7604
@mirwoeesahmedkhuraishi7604 7 жыл бұрын
Dear sir thank u very much for your videos on KZbin .God bless you for the hardwork and time you have taken. I have a doubt I created excel vba project I clicked alt f11 to open vb but after coding and design I try to save it doesn't save ,I get the error saying file not found
@Exceltrainingvideos
@Exceltrainingvideos 7 жыл бұрын
You have to save your file as a macro enabled fie. After creating the file click on save as... In the save options give your file name as usual Now in the Save as Type section click on the drop-down arrow and select: Excel Macro Enabled-Workbook (*.xlsm)
@juliuslaurella2816
@juliuslaurella2816 6 жыл бұрын
Gud Day sir.. kindly make a video toturial on excel full screen with esc...using VBA..thanks..
@zapy422
@zapy422 6 жыл бұрын
Thank you for this video. Is it possible to integrate a macro to the excel program itself? So that any thime you open a new excel file you macro is automatically run
@Exceltrainingvideos
@Exceltrainingvideos 6 жыл бұрын
This link will help: www.exceltrainingvideos.com/how-to-auto-run-vba-project-when-excel-workbook-is-opened/
@footballfantasy3523
@footballfantasy3523 Жыл бұрын
Can we run it by don't clicking the enable content
@FoxRivers778
@FoxRivers778 Жыл бұрын
I'm here because I have a different problem. When I preview any Excel worksheet in Explorer it launches VBA window. Is there a way to stop this? Thanks.
@boliussa
@boliussa 6 жыл бұрын
This is the best video i've found so far on this question, but you are a bit of a boring unthoughtful robot, no need to display the date and in a particular format.., just do a messagebox to display "asdf", that way you can get right to the point of the actual video which is to run the macro automatically.
@Exceltrainingvideos
@Exceltrainingvideos 6 жыл бұрын
LOL. Idiot!
@SUNILVISHWAKARMAActor
@SUNILVISHWAKARMAActor 6 жыл бұрын
Sir i made a vba project but in the running my vba, when i open other workbooks of excel it get disturb. How to avoid other work book opening when my iserform is in running condition
@Exceltrainingvideos
@Exceltrainingvideos 6 жыл бұрын
There shouldn't be a problem really.
@244highlander
@244highlander 8 жыл бұрын
Hello, I have a spreadsheet that has 50 folders. Each folder has a macro. How to make all 50 macros to run in each folder when I open the file?
@Exceltrainingvideos
@Exceltrainingvideos 8 жыл бұрын
+Júnior Hoffmann You have a spreadsheet that has 50 folders? How did you achieve that Junior?
@244highlander
@244highlander 8 жыл бұрын
+Dinesh Kumar Takyar Is that a joke? Each folder is a country
@kennyowz
@kennyowz 8 жыл бұрын
is there a way to automatically open a specific workbook on startup OF THE PC at a specific time of the day?
@Exceltrainingvideos
@Exceltrainingvideos 8 жыл бұрын
Find the XLStart folder like so: Alt+F11 to the visual basic editor Ctrl+G to the immediate window Type ?Application.StartupPath and press Enter will give you the personal XLSTART and Place your Excel file in the XLSTART folder that you wish to open every time you start Excel.
@Exceltrainingvideos
@Exceltrainingvideos 8 жыл бұрын
Finally you can do this: C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\Users\takyar\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Place the shortcut to excel.exe and your file in this folder. Replace the username and path according to your computer. I've Windows 10 and Excel 2016.
@kennyowz
@kennyowz 8 жыл бұрын
but this opens the workbook only at startup of the pc, not at a chosen time......=(
@JamesBond-qg5gx
@JamesBond-qg5gx 3 жыл бұрын
Thanks a lot, what if there are 2 macros to be executed once the file is open
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
Call the second macro from the first. The link to this VBA tutorial will guide: www.exceltrainingvideos.com/run-multiple-macros-excel/
@JamesBond-qg5gx
@JamesBond-qg5gx 3 жыл бұрын
Dinesh Kumar Takyar thanks
@neon6702
@neon6702 3 жыл бұрын
Why there are 27 unlikes? very informative
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
Thanks.
@vineetjain8354
@vineetjain8354 4 жыл бұрын
Sir, can you please create a VBA code for adding numbers in a coloum upto a specific range (say 400 to 420) and after getting this sum program put that value in adjacent cell and after that addition beigns automatically again upto the last cell of that coloum, that consist last value.
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
This VBA lesson will guide: www.exceltrainingvideos.com/tag/identify-colored-cells-excel-worksheet-with-vba/
@ramachandransankar750
@ramachandransankar750 2 жыл бұрын
Dinesh, I have a auto vba run excel file. How to open this file present in storage server.
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Please ask your system administrator.
@LoudFindings
@LoudFindings 5 жыл бұрын
I am working on B file A and C files are already open. I am unable to run macro from B file. Not run above macro. And clear content macro. But another macro are running. While running clear content it gives me 10004 error. Please guide.
@Exceltrainingvideos
@Exceltrainingvideos 5 жыл бұрын
The macro in the active workbook will be executed i.e. the currently selected workbook.
@LoudFindings
@LoudFindings 5 жыл бұрын
@@Exceltrainingvideos I'll try. Thanks alot
@rabiul910
@rabiul910 4 жыл бұрын
when I click the RunSub Icon then another window comes titled by "Macros" and there is a run button that is not active. please help to fix this.
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Can you give an example?
@princex3x
@princex3x 4 жыл бұрын
Very nice Sir Can this code be converted to get the msg in vbvoice???? Please help 🙏🙏🙏
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
This link will help: www.exceltrainingvideos.com/how-to-send-email-reminder-automatically-from-excel-worksheet-using-vba/ Or search www.exceltrainingvideos.com
@Ganesh_Manoj
@Ganesh_Manoj 5 жыл бұрын
I followed your steps but when I am clicking on any cell this function is being running. I want it to run only for first time
@Exceltrainingvideos
@Exceltrainingvideos 5 жыл бұрын
This link will help: www.exceltrainingvideos.com/how-to-auto-run-vba-project-when-excel-workbook-is-opened/
@MIMGURU
@MIMGURU 2 жыл бұрын
Super
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Thanks. Please share my KZbin channel on Excel with your friends,
@MIMGURU
@MIMGURU 2 жыл бұрын
@@Exceltrainingvideos welcome
@rupakkrushnapattanaik98
@rupakkrushnapattanaik98 7 жыл бұрын
Dear Sir, I could not able to open another excel file while one userform is opened. kindly help. Regards Rupak
@Exceltrainingvideos
@Exceltrainingvideos 7 жыл бұрын
www.exceltrainingvideos.com/advanced-user-form/
@eliaszbarzi8406
@eliaszbarzi8406 10 жыл бұрын
it doesnt work how to enable macro in other computer ,when our workbook open in others pc ?
@satheesannair3418
@satheesannair3418 11 жыл бұрын
excellent teaching skill, but a bit below than the demonstrator of liittle web hut"
@imyong7983
@imyong7983 3 жыл бұрын
mine fail to run....get "Compile error: Sub or Function not defined"
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
The message is loud and clear!
@imyong7983
@imyong7983 3 жыл бұрын
@@Exceltrainingvideos yeah but i got no idea y i got error
@naresh90sharma
@naresh90sharma 6 жыл бұрын
Sir once upon time. I had raised a question. U didn't reply still . It was not my order. It was a request sir . Can u help anybody without any charge. I was your good subscribe. I will not be raised any question for you. I will be ask from anybody if I have done wrong please forgive me. Thanks . Naresh Sharma
@Exceltrainingvideos
@Exceltrainingvideos 6 жыл бұрын
Generally I answer all queries that I understand or am able to provide a solution. As I can see I've answered all your queries. Kindly share your code or ask a relevant question. For Hindi videos please visit my channel kzbin.info
@Exceltrainingvideos
@Exceltrainingvideos 11 жыл бұрын
LOL.........
@Exceltrainingvideos
@Exceltrainingvideos 11 жыл бұрын
LOL...
@sharepoint4569
@sharepoint4569 6 жыл бұрын
how to auto refresh(schedule refresh) the excel data that excel sheet located in cloud (on-drive)(with out opening excel file )
@confirmedleek
@confirmedleek 11 жыл бұрын
Please use something better than a potato to record tutorials...
Run VBA Code on Protected Worksheet
13:31
Dinesh Kumar Takyar
Рет қаралды 89 М.
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 82 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 20 МЛН
How To Create Vba Code Modules In Excel
11:19
Excel Campus - Jon
Рет қаралды 135 М.
Excel Macros & VBA - Tutorial for Beginners
50:20
Kevin Stratvert
Рет қаралды 1,1 МЛН
How To Auto-Run Macro When Excel File Is Opened
5:43
Essential Excel
Рет қаралды 30 М.
Schedule Excel Macro to Run Automatically at certain time
10:59
Excel Destination
Рет қаралды 76 М.
Free Excel VBA Course #15 - IF Then Else Statement in Excel VBA
11:44
Run Macro Automatically without Opening Excel File
6:34
Dinesh Kumar Takyar
Рет қаралды 127 М.
10X Your Excel with Macros & Basic VBA
11:18
Kenji Explains
Рет қаралды 75 М.