Тёмный
EverydayVBA
EverydayVBA
EverydayVBA
Подписаться
Teaching people everywhere to become Excel VBA Ninjas
Комментарии
@DalpatMistry
@DalpatMistry 20 часов назад
Thank you for sharing this - it is useful and very quick. If I want to get Modified date in 2nd column with folderPath, how should I do it? like I have xyz.xml file but it appears to be in 4-5 different folder under one-XYZ folder and each folder has same filename but different modified date & different sizes. I want to pick the most recent one into excel sheet OR show all but Most recent one on top most row. Appreciate it your time/help!
@mostainbillah
@mostainbillah 16 дней назад
Dear Sir , I have See your Tutorial , You have Not discuss ,How Select Next (Middle) Empty cell Offset Function . Could You Please Describe the Middle Offset Function ,
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 16 дней назад
@@mostainbillah offset just takes where your range and moved it up or down or left and right. I use it a lot when deleting a sheets contents. I will use the select current region and I will offset it by 1 row so it doesn't delete the header row. I haven't used the middle function so I can't help there
@multi-sports4700
@multi-sports4700 18 дней назад
Where is the macro script? The link doesn't work.
@TrevorDavis-s4i
@TrevorDavis-s4i 23 дня назад
Would have been nice to see what was outlined in the title actually done in the video.
@pipiyu2196
@pipiyu2196 Месяц назад
Hai can u help me
@showme99
@showme99 Месяц назад
I guess someone will need this: -First of all in Excel Reader that is reading your file you need to set "Select sheet-> By name [Jan] -Then in Flow Variables, for sheet name you set "Sheet" that comes from "Table row to variable loop" -And for me I had error in Loop end that thinks column count is not the same so just check: -Allow variable column types & Allow changing table specificationns I had these issues I have 12 sheets for months that I want to be 1 table with all Months 😅 This video helped me so now I help anyone who needs !
@AschwandenJakob
@AschwandenJakob 2 месяца назад
You're a damn good teacher for an old fart like me. The last programming I did was around the turn of the millennium. (except for a few modifications to old, existing ones)😂
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 2 месяца назад
@@AschwandenJakob yeah I learned from a book haha
@marcw.5492
@marcw.5492 2 месяца назад
This error does not happen when I run macro in 2007 - but does in 2021. Im changing focus to different workbook or sheet - and they do exist !
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 2 месяца назад
@@marcw.5492 that is weird. Can you post the code that has the error
@marcw.5492
@marcw.5492 2 месяца назад
@@EverydayVBAExcelTraining Well the line that VBA stops at is : Workbooks("historicalweeklydata.xlsx").Activate or Workbooks(2).Activate I also receive same eroor in other VBA macros trying to select a SHEET. Again all this has worked for years in 2007 but not in later version (2021) of Excel. There are other issues trying to open links to web sites that have never been an issue prior.
@OscarHernandez-q7o
@OscarHernandez-q7o 2 месяца назад
Thank you! My professor wanted us to create a function just like yours without using the "application.worksheetfunciton.sum" command. However he wanted us to use "for loops" instead of the "for each".
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 2 месяца назад
Nice, glad it helped. It took me a while to learn For Each loops once I did functions and got a lot easier
@Private_Engineering
@Private_Engineering 3 месяца назад
Thank you very much
@annezach5232
@annezach5232 3 месяца назад
Thank you for this! What if there are multiple delimiters?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 3 месяца назад
Multiple delimiters would be tough. You would need to have a loop and split everything 2 times.
@Danny-kq4ff
@Danny-kq4ff 3 месяца назад
Thumbs down, not a good explanation
@asva4855
@asva4855 3 месяца назад
Thanks for sharing this VBA code. Could you help me with the Macrocodes in this senario? Sheet 1 (DATA) is where I will input the details and Sheet 2 (DATABASE) where it will be save as a database. Senario: In Sheet 1 (DATA) using column, I will put up to multiple entries: DATA SHEET column sample: name/age/phone Jay/12/123 Joy/16/456 Will create command button SAVE. Condition: Once i click the save button, if the names are new entries the data will automatically move to the DATABASE sheet then clear the entry in the DATA SHEET proof that already moved to the database sheet. however, if the name is duplicate there will be a prompt that I have a duplicate value and won't be able to save in the DATABASE sheet. Also the data are retain to DATA Sheet to identity easily the duplicate. Thank yo in advance.
@farinnaity3692
@farinnaity3692 4 месяца назад
Hello, i am have a similar issue but i cant fix it :( ..not sure where to mae the changes..can you please share your Email address? So that i can share the code with you as it's quite long.
@LeeTownsend-rx6sm
@LeeTownsend-rx6sm 4 месяца назад
Do you have an equivalent for the Mac Terminal?
@rickybailey8609
@rickybailey8609 4 месяца назад
I am trying to use this code to do this with defined tables on both worksheets but I keep getting a 424 error (MasterTracker and MasterTracker4 are the table names to move from and to respectively). How do I go about doing exactly this with defined tables?
@dilkushbhai006
@dilkushbhai006 4 месяца назад
Sir please help me for Air mein error a raha hai yah to aapke WhatsApp contact number de do Jo main aapse poochh sakoge
@dilkushbhai006
@dilkushbhai006 4 месяца назад
Sir please help me mere bhi the name is not valid error a raha hai
@rinkeshverma2880
@rinkeshverma2880 5 месяцев назад
You literally can't explain😅
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 5 месяцев назад
Maybe if you send me a message I can explain it here
@jeremyharter3648
@jeremyharter3648 5 месяцев назад
Is it possible to save as PDF instead of .xlsm? I tried to replace filename = Application.GetSaveAsFilename("Default Name of Saved File", _ "Excel Macro Files,*.xlsm", 1, "Save the File") Debug.Print filename with filename = Application.GetSaveAsFilename("Default Name of Saved File", _ "PDF,*.pdf", 1, "Save the File") Debug.Print filename and I get a file that is saved in PDF but I am unable to open it.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 5 месяцев назад
For PDFs you would use the print function and set the output to PDF. Note this can be complicated if others users don't have the same PDF software
@Idoko_Ifeanyichukwu
@Idoko_Ifeanyichukwu 5 месяцев назад
Thank you, sir
@PeteyZ28
@PeteyZ28 5 месяцев назад
Still helpful over 3 years later!! The Object Browser at the end was clutch =]
@davidsanchez-bu9un
@davidsanchez-bu9un 6 месяцев назад
Hi,. thanks for the video. Can you please help me to detect the error that it is triggered in the last line: ThisWorkbook.SaveAs Filename:=nombreFichero Sub backAuto() RunTimer = Now + TimeValue("01:00:00") Application.OnTime RunTimer, "backAuto" 'nombreFichero = "c:\temp\Excel\" & Year(Date) & Month(Date) & Day(Date) & Hour(Time) & Minute(Time) & Second(Time) & ".xlsx" nombreFichero = "f:\davidtemp\" & Year(Date) & Month(Date) & Day(Date) & Hour(Time) & Minute(Time) & Second(Time) & ".xlsx" MsgBox nombreFichero ThisWorkbook.SaveAs Filename:=nombreFichero End Sub
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 месяцев назад
Does the folder exist?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 месяцев назад
What is the specific error that you get?
@stamatarsenikos9708
@stamatarsenikos9708 6 месяцев назад
this doesn't work when your code is in the personal.xlsb folder
@johngilbert5405
@johngilbert5405 6 месяцев назад
sick intro
@lauristonjunior252
@lauristonjunior252 6 месяцев назад
Eu tenho um botao com mousemove, mas ele so é ativo quando eu clico em outro botao, tipo: Ele é para atualizar, mas ele so aparece quando eu chamo os dados para serem atualizados, dai ele fica com efeito de MouseMove, nao sei como fazer, pois se deixo ele assim, mesmo que coloque .visible = False, por ele ter o mousemove, ele aparece, o que fazer e como fazer?
@j.fabricioelias227
@j.fabricioelias227 6 месяцев назад
Thank you!
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 месяцев назад
Glad it helped
@harisonic
@harisonic 6 месяцев назад
How to do this using .Add function?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 6 месяцев назад
What do you mean add. What are you trying to do. You can concatenate strings using &
@spankmobley
@spankmobley 6 месяцев назад
No way to do this programmatically?
@CAP0NE
@CAP0NE 7 месяцев назад
When cancelling the InputBox in step 3 (Range) I get an Error which can't even be handled. Run-time error '424': Object required Any ideas on this?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 7 месяцев назад
What did you enter? It is expecting a range so if it gets a number or characters it won't work. You will need to do error handling
@davidmensah6101
@davidmensah6101 7 месяцев назад
Man! Your Array videos are the best. I am just starting off with Excel VBA and this is the simplest yet most comprehensible videos I have come across on the whole internet. Thanks, man!
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 7 месяцев назад
Glad it helped!
@Juan-Hdez
@Juan-Hdez 7 месяцев назад
Very useful. Thank you.
@donalmurphy7021
@donalmurphy7021 7 месяцев назад
Perfect! Just the simple solution that I was looking for.
@kebincui
@kebincui 7 месяцев назад
You are an excellent instructor, explaiining very well. Thank you
@MJ-oj2qv
@MJ-oj2qv 8 месяцев назад
I was looking for a resize video but subbed after watching this. Nicely short and to the point.
@SavedbyGraceCT
@SavedbyGraceCT 8 месяцев назад
Getting this error right after I changed the formatting in tables to fixed number values.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 8 месяцев назад
The table should not cause this issue unless it is considering blanks as zeros
@SavedbyGraceCT
@SavedbyGraceCT 8 месяцев назад
@@EverydayVBAExcelTraining I've set it back to general number and taken out all the table level default zeros - in and working again until a moment ago, I had just done a batch sql update and insert on tables and now I've got div/0 going on. So, there must be zeros progating somewhere.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 8 месяцев назад
@melanieCT so weird. Can you use a iferror in the formulas
@AliNBarakat
@AliNBarakat 8 месяцев назад
Thanks for you But how i can open all xls files in multi folder to extract data.
@AliNBarakat
@AliNBarakat 8 месяцев назад
@EverydayVBAExcelTraining
@pauljosephson4820
@pauljosephson4820 9 месяцев назад
you didn't define/Dim "rw"
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 9 месяцев назад
Yeah, I have constantly gone back an forth on that one. To not define variables is NOT best practice but it also takes time to explain on videos and can be more confusing for someone new to vba. I don't know what the right answer is here.
@owenwaldo
@owenwaldo 9 месяцев назад
Multidimensional arrays are insane
@asaduzzamandaria8731
@asaduzzamandaria8731 9 месяцев назад
Thanks a lot. It's great than other to me.
@Мечтатель-х1х
@Мечтатель-х1х 9 месяцев назад
Performing a comparisson of two value columns is so basic task but i've spent an hour before I found your salvatory video. Thank you!
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 9 месяцев назад
Funny story. I do this very rarely but found it very useful so I posted the video. About a year later I forgot I had done the video and when I googled how to do this my video came up. Haha Glad it helped
@owenlau2025
@owenlau2025 9 месяцев назад
Thank you so much! question, is there a way we could make the sheet number dynamic? I tried Sheet&"i" with i as an integer and i increases by 1 each time it goes thru the loop, but always get an error. Much appreciated..
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 9 месяцев назад
Sheet.name & I This should do the trick. Sheet is an object that contains cells, format, charts, shapes etc. so you need to tell it what part of the object you want and in this case it is .name
@owenlau2025
@owenlau2025 9 месяцев назад
Thanks for your quick response, I really appreciate it. Just learned Sheets(i) would do as well, I missed the "s" :) @@EverydayVBAExcelTraining
@mr.write1433
@mr.write1433 9 месяцев назад
So can i make an if statement to this? For if the the file path <> to my path then ill put msg box then close the. App
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 9 месяцев назад
Yes within your for loop you will need and if statement and the code inside the if statement would be If ... Msgbix ... Exit suc End if
@YigalBZ
@YigalBZ 9 месяцев назад
Can the VBA select by the name the sheet was given? not by the code name?
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 9 месяцев назад
VBA can select by the name of the sheet which the user can change. You can also select by the code name or even the index (sheet number left to right) I typically use code name because then the end user can't mess up my code
@POMI_Singing_Guru
@POMI_Singing_Guru 9 месяцев назад
thanks a lot dear, really very thank full for your kind training............ WELDONE WORK THANKS A LOT FOR THIS BEAUTIFUL SESSION OF FILE SEARCHING
@JohnMCaron
@JohnMCaron 9 месяцев назад
is there a way to run this code to list in a second column the date last modified information? Thank You!
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 9 месяцев назад
The easiest thing to do is to insert a column after the list is created. You could also try cells(1,2) instead of cells(1)
@tranyarelisher4185
@tranyarelisher4185 9 месяцев назад
Super helpful, way better than the way I was doing it.
@dimamedvedev4124
@dimamedvedev4124 10 месяцев назад
Thanks for this video. I wonder whether can I get the name of the WB which I have saved from?
@ericmcgough1125
@ericmcgough1125 10 месяцев назад
Do you know a way to create an alias for the username section of the file path. Similar to the path you extracted, my organization shows the individual usernames near the beginning of the string. I created a macro that will copy and paste data from a template into a new workbook and save the new workbook as a defined cell reference. It works perfectly for me but my coworker cannot run it on her machine.
@ericmcgough1125
@ericmcgough1125 10 месяцев назад
The template file is saved in the same folder as the output file but our file paths are different due to our usernames.
@EverydayVBAExcelTraining
@EverydayVBAExcelTraining 10 месяцев назад
You would need to add some error handling. How I would research the.problem is write a simple macro that checks for an Alias or username on their PC and prints it in A1. Then you will be able to isolate if the error is the alias. The other thing to check is permissions on the folder