5 More things I wish I Knew When I Started Using Excel VBA

Поделиться
HTML-код
  • Опубликовано: 1 авг 2024
  • 👉 Ready to master VBA?
    - Check out my full courses: courses.excelmacromastery.com/
    - Subscribe to the channel here: bit.ly/36hpTCY
    - FREE CHEAT SHEET: Get the free cheat sheet on VBA arrays here: bit.ly/2MXsnz9
    (Note: If the download page doesn't work then make sure to turn off any popup blockers)
    5 More things I wish I Had Known When I Started Using Excel VBA
    Hello and welcome to this Excel Macro Mastery video.
    The video "5 thing I wished I knew when I started usinng Excel VBA" was very popular when I released it.
    I got many requests to do more. So here it is: 5 More things I wish I Had Known When I Started Using Excel VBA.
    Related Articles
    VBA Inputbox - A Complete Guide (excelmacromastery.com/vba-inp...)
    Using ADO section: (bit.ly/2Sk9Qjs)
    Useful VBA Shortcut Keys:
    Shift + F2: Get the definition of the item under the cursor.
    Ctrl + Shift + F2: Go to the last cursor position.
    Ctrl + Space: AutoComplete Word.
    Alt + F11: Switch between Excel and the VBA Editor.
    Ctrl + R: View the Project Explorer Window.
    Ctrl + Shift + 8(or Ctrl + *): Get the current region on a worksheet.
    F4: View the Properties Window.
    F5: Run the code from the current sub.
    F9(or click left margin): Add a breakpoint to pause the code.
    Tab: To move lines of code to the right(Indent)
    Shift + Tab: To move lines of code to the left(Outdent).
    Table of Contents:
    00:00 - Introduction
    00:28 - Complete Word
    02:40 - View the Definition
    06:14 - Marker 5
    08:04 - Get the range from the user
    09:13 - Reading from closed workbooks
    10:30 - Marker 3

Комментарии • 159

  • @Mandelbrot567
    @Mandelbrot567 5 лет назад +15

    Most of that was new to me and seems very useful, thanks Paul.

  • @greg2865
    @greg2865 5 лет назад +6

    WARNING - Watching Paul's videos will cause discontent with perfectly good VBA code. I have rewritten a fairly complicated sheet twice in the last week to take advantage of techniques that were new to me. My new favorite RUclips subscription. Thanks again!

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      lol - You're welcome Greg. Glad to see you're finding the techniques useful.

  • @rayhanrana6773
    @rayhanrana6773 5 лет назад +14

    Your explanation of VBA code is just outstanding.

  • @Cyb3rP0p3
    @Cyb3rP0p3 5 лет назад +15

    I'm mostly self taught and been doing macros in excel for about 8 years... everything in this video was new to me and all your videos have had excellent, new to me, tips and tricks. Thanks for your contributions, they are awesome!

  • @letmedie4you
    @letmedie4you 7 месяцев назад

    Thanks for your videos. Everything here saves tones of time for me everyday..

  • @jamithireddyr
    @jamithireddyr 5 лет назад +10

    You have became my quick go to Guy after the video "running the code 1000 times faster". In fact, I optimized my worksheets your way and they run 10000 times faster

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      That's great to hear Rajasekhar!!

    • @rscaht
      @rscaht 4 года назад

      Much more fast using WorksheetFunction.Match instead of "for cells() next" or "Range.find" .
      and also ARRAY instead of ranges .
      My workbook improoved a lot . The Use of MicroTimer helped me understand the changes , what is fast and what is slow .

  • @michaelthomas8630
    @michaelthomas8630 4 года назад +1

    Your presentation is typically flawless and very informative. Thanks for taking the time to put these invaluable lessons together.

  • @olliehopnoodle4628
    @olliehopnoodle4628 3 года назад

    I just started working with VBA. I am an old school 'send to the compiler' programmer from last century. But I have some stuff I want to do in excel and watching your video's will give me a huge head start on setting up my environment and some of the concepts in this new to me environment. Liked, subscribed and saved...

  • @HSkraekelig
    @HSkraekelig 4 года назад

    The ADO thing is going to be my flavour of the week. I had a user lock his workstation yesterday with a shared workbook open. I think I see how to make that a thing of the past. Thanks!

  • @pattabhimadhavaram7725
    @pattabhimadhavaram7725 4 года назад

    I've been using VBA for years and still find your videos incredibly resourceful. I appreciate your help. Please post any Patreon links so we can donate if you are accepting!

  • @joecross5335
    @joecross5335 4 года назад

    Paul, you are the most advanced user of vba that I have ever learned from, and hands down the best teacher. Thanks for the videos!

  • @dangelorrrr
    @dangelorrrr 5 лет назад +28

    Paul, I think we need an ADO/SQL tutorial.

    • @adamploof3528
      @adamploof3528 5 лет назад +4

      Agreed, would love to see a deeper on dive on that subject.

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +9

      That's a good idea. I'll put it in my list.

    • @frikduplessis3869
      @frikduplessis3869 4 года назад

      Paul, please do one on ADO 🙏

    • @HappyAnimals3D
      @HappyAnimals3D 4 года назад

      @@adamploof3528 Fully agree wit you Adam

  • @KLiCuk1
    @KLiCuk1 3 года назад

    👍 Superb tips - especially the ADO connection. I'll try this with a speed test comparing opening workbooks then copying sheet data.

  • @charan888
    @charan888 4 года назад

    The things that you teach are completely new and makes life easy writing code. Thanks Paul. Love it!

  • @serdip
    @serdip 3 года назад

    Wow! What a great tutorial! I didn't know that Watch Window was editable! I always found it frustrating that for Range objects, the Address property is not present in the Watch Window. I would copy the Range variable to the Immediate Window and query its Address property there but thanks to this video I can save that step and simply add the Address property to the variable in the Watch Window. Neat!
    I am familiar with using ADO to query Excel workbooks but I was operating under the assumption that the workbook being queried had to be open on the desktop first. Thanks for helping me understand that it's not necessary to open it. As you mentioned, using ADO to query a workbook on a server is especially useful since it can otherwise take some time to open and download a copy of a workbook from the file server to the local machine.
    Some folks think VBA is just a simple scripting language but, as you constantly demonstrate in your videos, it is a very powerful programming platform. Thank you!

  • @arielgarcia4199
    @arielgarcia4199 4 года назад +1

    wow! you are very proficient sir. thank you so much. its very comprehensive.

  • @the_feature_selector859
    @the_feature_selector859 4 года назад

    Definition and Last Position....F2 and Shift+F2... Amazing

  • @LosoIAm
    @LosoIAm 2 года назад

    Sir, your tutorial on how to get data from a closed workbook is absolutely wonderful - I THANK YOU!

  • @NitaFunnyVideo
    @NitaFunnyVideo 10 месяцев назад

    Ur a true Guru sharing knowledge that may be kept confidential or hidden.

  • @niyazrafatkhan8364
    @niyazrafatkhan8364 3 года назад +1

    Your videos are like magic spells, it just works so well with so little but correct information

  • @trinhthanhlinh150
    @trinhthanhlinh150 4 года назад

    Thank you very much Paul!!
    Copying data from Closed workbook is my thorny issue for a month. This video is very useful.

  • @aliibrahem6313
    @aliibrahem6313 4 года назад

    Thank you, very informative.

  • @martynpage1794
    @martynpage1794 4 года назад

    Been using VBA for years but you've shown me some great new tricks. Thanks Paul!

  • @alihamiad7849
    @alihamiad7849 5 лет назад +1

    Really impressed me these techniques!. Thanks Paul

  • @oneswolf
    @oneswolf 4 года назад

    Wow. Great teaching and fantastic information!

  • @rubenpradesgrau8430
    @rubenpradesgrau8430 4 года назад

    Love your work. Really useful

  • @maciejdolinski1036
    @maciejdolinski1036 4 года назад

    Hi Paul,
    Thank you for the following GREAT material. You are the class for your own.

  • @ardeshiraqayi9976
    @ardeshiraqayi9976 4 года назад

    Very very very useful ... Thank you so much for sharing this ....

  • @mtotowamungu8259
    @mtotowamungu8259 4 года назад

    You are great. I Thank you so much for your helpful videos.

  • @niavras
    @niavras 3 года назад

    Real treasure here! Thank you so much!

  • @janezklun
    @janezklun 4 года назад

    Excellent tutorial, thank you for sharing, Cheers

  • @gerardbakker261
    @gerardbakker261 3 года назад

    Excellent video, thanks Paul. Love the ADO, that's going to be very useful. How about making a series like this. I have learned many new skills in your first 10 tips.

  • @JonathanExcels
    @JonathanExcels 5 лет назад

    I have written quite a bit of code and all of the tips in this video and the last are very helpful. Thank you

  • @BertandRussell
    @BertandRussell 4 года назад

    All of your videos are unique n commendable... I am an expert in VBA but still your videos are life-savers to me...I have No words to appreciate your work...Thanks from depth of my heart.. God bless you... May God fulfill your wishes and your offsprings'...Live long n healthy. Amen

  • @randomgoose
    @randomgoose Год назад

    Always enjoyed VBA, mainly in Access, but ADO really appeals. SQL in Excel!

  • @rrrprogram8667
    @rrrprogram8667 4 года назад +1

    Awesome explanation... Previously i read ur article on the same topic which i got in mail.... But it was hard read.... But ur video explanation is absolutely interesting... Love to see more videos... I guess... U should make this channel BIG now...
    All thr topics which u have in website should be made as a video series.. U will have big vba fan following for sure

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      Thanks for the feedback. Plenty more videos to come.

  • @houstonvanhoy7767
    @houstonvanhoy7767 3 года назад +1

    After viewing numerous videos from Sir Paul, I just have to state that if the high standards of the medical profession were enforced on the IT teaching profession, our technical outcomes would have a much higher success rate. Sir Paul, M.D. is our doctor of VBA. 👍

  • @cristonsloan
    @cristonsloan 4 года назад

    Really great, thank you, but especially thank you for that last one, which, to be fair, is not really great, but flippin' Awesome!

  • @carstencardoso8876
    @carstencardoso8876 4 года назад

    Great stuff. Never thought about using ADO to access closed workbooks. I think it is worth mentioning that adding the reference to the 6.1 library is optional - instead, late binding may be used (Set conn = CreateObject("ADODB.Connection")). There are pros and cons for both options, but I find it sometimes useful in order to mitigate compatibility issues, if it is a spreadsheet that will be run by other users.

  • @alexhoch1264
    @alexhoch1264 4 года назад

    Nice video. I like the last part "ADOB". Last week it was the first time that I have used it (used it for a left join).

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      SQL is a powerrful way of dealing with queries. Definitely worth using.

  • @frikduplessis3869
    @frikduplessis3869 5 лет назад

    Brilliant again thank you

  • @ThorstenStrauch
    @ThorstenStrauch 4 года назад

    Whow! Again :-) Thank you a lot!

  • @AS-ym2bp
    @AS-ym2bp 4 года назад

    Hi Paul, I've been using the ADO and it works great so far. I've even been able to SELECT individual records from the database by learning SQL and reading them onto my worksheet.
    I've just been wondering if there is any way to _(while running the _*_UseADO_*_ macro)_ place the individual row's data that I imported into cells of my choice :-
    eg. data from "A2" is read into "A4"
    data from "B2" is read into "C3"
    data from "C2" is read into "E10" etc.
    So basically, while firing the query and reading the data, I want to place the data in each column into cells of my choice.
    Hope it's clear enough to understand.

  • @Rampracaash
    @Rampracaash 4 года назад

    You are awesome..!! I have made code with different method for the same requirement, but with this my code can run a 100 times faster..

  • @grahamparker7729
    @grahamparker7729 5 лет назад

    Another great video 👌🏻

  • @danielszalok8540
    @danielszalok8540 4 года назад

    Tons of new information even after 4.5 years of vba 🙂 Definition, Parent, this infobox type, and adodb...

  • @learnexcelwithfun4716
    @learnexcelwithfun4716 4 года назад

    What Can I Say..It's WoW!

  • @nic23lond23
    @nic23lond23 4 года назад

    Very good content! Thank you very much!
    I made a fairly large database on Excel for recurring invoicing a couple of years ago... If only I had known this... The ADO thing sounds quite powerful... being able to run SQL queries on a Workbook means that most applications I need for business can be run on Excel... lol
    If you find yourself looking for a video topic... an SQL database on Excel would be EPIC

  • @pythusiast4701
    @pythusiast4701 3 года назад

    Very useful tips man.... keep up the gud work.

  • @marcelomotta1427
    @marcelomotta1427 3 месяца назад

    Perfeito ❤

  • @ventjemazzel8822
    @ventjemazzel8822 4 года назад

    Great video; thanks!

  • @sksanket
    @sksanket 4 года назад

    Hi Paul,
    I must say excellent contents and great way of explanation skills.... keep sharing knowledge it will definitely help people's like me.
    Another thoughts is it possible to creat video on how to download attachments from perticular subject mail or perticular attachment name.
    Also SQL videos are most welcome.
    Sanket

  • @neronjp9909
    @neronjp9909 6 месяцев назад

    Amazing

  • @rrrprogram8667
    @rrrprogram8667 4 года назад

    Good one... Thanks for the video

  • @HappyAnimals3D
    @HappyAnimals3D 4 года назад

    You are amazing!

  • @selesli1895
    @selesli1895 4 года назад

    Hello, for the ADO, I can't get the part of the code where it said "Dim conn As New ADODB.Connection" to work. Would appreciate your answer to this.

  • @pmacgowan
    @pmacgowan 4 года назад

    Very useful

  • @stevennye5075
    @stevennye5075 4 года назад

    very useful!!!!

  • @sjwthomas
    @sjwthomas 3 года назад

    I have found these articles very interesting, thanks Paul. One question on the 5th item which was "Reading from closed workbook". When I try the exact example I get a Compile Error on the line "shResult.Cells.ClearContents" saying Variable Not Defined". Any idea why I get this error.

  • @butzromulo6695
    @butzromulo6695 3 года назад

    I appreciate all what you're doing . . . hope we can do something in return! Thank you very much!

  • @terrycline8689
    @terrycline8689 5 лет назад

    More great stuff, thanks Paul. While I was aware of ADO, I haven't worked with it to date. It will definitely solve some challenges I have been having. Rather than "copy/paste" the query results to another spreadsheet, could it be put directly into an array?

  • @kabukijoe99
    @kabukijoe99 Год назад

    thank you for very useful lesson

  • @PrincePedia
    @PrincePedia 5 лет назад

    Thanks Paul , awesome
    I wonder if you have time to make a video about difference between used range and current region , Thanks.

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      Used range is the range of all used cells on the worksheet. From the first used cell to the last used.
      CurrentRegion is all the adjacent cells with data. The region ends at a blank row or column.

    • @PrincePedia
      @PrincePedia 4 года назад

      @@Excelmacromastery Thanks Paul

  • @sourvep
    @sourvep 4 года назад

    Can we create hyperlink which redirect to a specific cell of another csv file? If yes please share ur inputs

  • @edwingonzalez2749
    @edwingonzalez2749 2 года назад

    Thank you for this video. I am interested in working with closed excel files.
    I followed your steps for the ADO and got Run-Time error '-2147467259 (8000040005)' Failure creating file. I looked online and says that I need to unprotect the sheet but I never protected the "5 more things Data.xlsx" file. I already checked the MS ActiveX Data Object 6.1 Library. The macro file and the data file are in the same folder. Do you have any suggestions?

  • @korencek
    @korencek 3 года назад

    is using ADODB faster than "Application.Workbooks.Open" when opening files? Or is it about the same?

  • @uniQue_XL
    @uniQue_XL 4 года назад

    Thanks Paul for great video!
    Is it possiable to change the extention of excel files, on a folder, from .xls to .xlsx, without haveing to open each files on the code?

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      You can use the "Name" and "Dir" functions.
      Name "C:\temp\data.xls" As "C:\temp\data\xlsx". Use Dir to get all the files in a folder.

    • @uniQue_XL
      @uniQue_XL 4 года назад

      @@Excelmacromastery
      Thanks Paul!👍

    • @uniQue_XL
      @uniQue_XL 4 года назад

      Have just checked it and you cannot change the extension only, as excel popup massage that the file is corrupted. probebely the file must be open and save with the new extention.

  • @sreejithom3726
    @sreejithom3726 5 лет назад

    The parent name property we can apply in immediate Window also right?

  • @AS-ym2bp
    @AS-ym2bp 5 лет назад

    That ADO code was such a powerful piece of information and explained very succinctly. I have one burning question though that I'd be grateful to you if you could address or answer: _Is there a way to write to a closed file using ADO? How would that code be?_

    • @ricos1497
      @ricos1497 5 лет назад +2

      Same code, but just use an "Insert into" SQL query instead of the Select statement. I use it all the time. The only piece of advice I'd give is to ensure that you always set up your data in a single sheet (try to start in A1 with your headers) and make sure it is laid out in columnar format. You're effectively turning a spreadsheet into a DB, so it is very powerful. You may also notice that when you do an Insert into on a sheet with no existing lines of data that you sometimes get data type errors as Excel doesn't know what type the data in the column should be (dates etc might cause issue). I believe it takes the type from the data in the first row of your data table (for example, if you have a cell in the first row below the header that is a date, Excel will expect you to be inserting a date). Hope this makes sense!

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      Thanks for the useful advice Rico

    • @AS-ym2bp
      @AS-ym2bp 4 года назад

      @@ricos1497 Yeah, thanks!!

  • @wayneedmondson1065
    @wayneedmondson1065 5 лет назад

    Hi Paul.. another excellent video. Thanks a million for these gold tips and tricks. Question on ADO and SQL: Is it possible to design an ADO connection and SQL query that returns to a target worksheet whatever is in a defined range of the closed source workbook/worksheet? So, let's say I want to copy everything contained in the source Workbook, Sheet1, Range A1:Z100 and that range is not set up as a data table or database, it just contains text and numbers in various cells within the range and some cells are even blank. What I am after is something similar to actually opening the source and then copying and pasting whatever is the contents of A1:Z100 to the target and then closing the source. Right now, I do this with code that allows me to pick the source file with Application.GetOpenFilename and then code that does the copy from source, paste to target, close the source. If I could do the same, but skip the open/close of the source file, that would be brilliant! Any thoughts? Thanks again and Thumbs up!!

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      ADO expects records to be in database form. If not then it will complain. The easiest thing to do is run a test query and see what happens.

    • @houstonvanhoy7767
      @houstonvanhoy7767 Год назад

      @@Excelmacromastery "Database form" = Excel table with no line gaps or column gaps?

  • @luiscordeiro1397
    @luiscordeiro1397 4 года назад

    do you need to have data in a table format in order to access it via ADODB.connection?

  • @briandennehy6380
    @briandennehy6380 5 лет назад

    Amazing Paul - out of interest you do any vba classes or course in Ireland?

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      Thanks Brian. I don't do any live VBA classes at the moment. I may do some in the future.

    • @briandennehy6380
      @briandennehy6380 4 года назад

      @@Excelmacromastery cheers Paul. It's really hard to find any comprehensive class based courses on vba

  • @charan888
    @charan888 4 года назад +1

    Hey Paul, The below line is giving me an error while trying to read from closed workbook. Conn.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & "Data source=" & FileName & ";" & _
    "Extended Properties=""Excel 12.0;HDR=Yes;"";"
    Error is "Cannot update. Database or Object is read-only".

    • @fahrigafarzade735
      @fahrigafarzade735 4 года назад

      Try to use following as connection string:
      Dim ConnStr as String
      ConnStr = "DSN=Excel Files;DBQ=" & ActiveWorkbook.FullName
      I implicitly assumed that the 'proper database' which ADODB understands is in your open workbook. If it is not the case, you just need to replace "ActiveWorkbook.FullName" part with the proper fullname of the workbook. Someting like:
      C:\Users\w8\Desktop\The Work\Excel_Query_Workbook.xlsm

  • @haiderbokhari1
    @haiderbokhari1 4 года назад

    As always your videos are AMAZING! I have two questions on this video if that's ok
    Q1) At time 6:15 this line of code confused me:
    shorders.range("h1").currentregion.offset(1).clearcontents
    What does the offset(1) do in relation to the currentregion?
    Q2) What would be the difference between rng and rng2 here:
    dim rng as range
    dim rng2 as range
    rng=thisworkbook.sheets("A1").currentregion
    rng=thisworkbook.sheets("A1").currentregion.value
    I'd really appreciate any help. Thank you!

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      Glad you like the videos.
      Q1)
      another way to write it would be
      dim rg as Range
      Set rg= shorders.range("h1").currentregion ' Get the current region range
      Set rg = rg.Offset(1) ' Move the range down one row to avoid deleting the header.
      Q2)
      CurrentRegion returns a range
      currentRegion.Value returns the array of values in the range
      -Paul

    • @haiderbokhari1
      @haiderbokhari1 4 года назад

      @@Excelmacromastery wow that was lightning fast! Your are the MAN! Where were you when I started learning VBA???

  • @anthonyblenk1854
    @anthonyblenk1854 4 года назад

    I dearly would love to use these techniques, but I don't know which version of VBA for Excel Paul is using. I know that it's not the on I use: some of the code just doesn't work with my version. Knowing which version would really help, and, IMHO, is a necessary part of a tutorial.

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      Hi Anthony
      This code works with all versions of VBA from 2007 onwards. If something is not working then it has nothing to do with the version.
      -Paul

  • @obsoquasi
    @obsoquasi 5 лет назад

    ADO sounds really useful and would probably speed up my code 100 times. Unfortunately I have to code VBA for Mac users and ADO is not supported on Excel VBA for Mac. The culprit is Active-X...

    • @ricos1497
      @ricos1497 5 лет назад

      Have you tried using ODBC instead? Think it is supported in Excel 2016 for Mac, but I don't have a Mac so have never tested!

    • @Excelmacromastery
      @Excelmacromastery  4 года назад +1

      Unfortunately some of these useful libraries are only available on Windows.

    • @Cyb3rP0p3
      @Cyb3rP0p3 4 года назад

      @@Excelmacromastery This is painfully true. While 99% of my organization is on Windows... there of course a few MAC users which make my VBA life a nightmare... even more painful is they are high level execs. =/

  • @BenjaminHouot
    @BenjaminHouot 4 года назад

    Hi.
    When you someone use the macro, he could have a problem by not having the dll i suppose ? or not exactly the last one.
    However it a nice trick to read data from workbook.
    I have already used it in a C# code, but i have never thank to use it in vba itself.

  • @grahamparker7729
    @grahamparker7729 4 года назад

    👌🏻

  • @karankamal3130
    @karankamal3130 Год назад

    ADO is what I need mostly

  • @VipinBalakrishnan
    @VipinBalakrishnan 4 года назад

    ADO is faster or advance filter is faster?

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      Advanced Filter is faster if the data is in the current workbook.
      ADO doesn't require a workbook to be open so in this scenario ADO will more than likely be quicker.

  • @rrrprogram8667
    @rrrprogram8667 4 года назад

    Right away I searched if u have made any course on udemy.... Sadly there isn't

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      www.udemy.com/course/excel-vba-how-to-write-like-a-professional/

  • @saravananbe19
    @saravananbe19 4 года назад

    How to get vba handy book sir

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      You can purchae the Excel VBA Handbook Course from here: www.theexcelvbahandbook.com/

  • @srisureshm1476
    @srisureshm1476 4 года назад

    Hi
    Can we block vba code @ particular date
    Example code should not work after one month

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      Yes. Just use an If statement. However it is very is to circumvent.

    • @srisureshm1476
      @srisureshm1476 4 года назад

      Excel Macro Mastery
      Thanks for u r reply. Can I have one example

    • @Excelmacromastery
      @Excelmacromastery  4 года назад

      @@srisureshm1476 You're very welcome.

    • @joecross5335
      @joecross5335 4 года назад

      If inputBoxDate > your Cutoff Date then
      Msgbox ("Please select a date less than (whatever).")
      Exit sub
      End if

    • @houstonvanhoy7767
      @houstonvanhoy7767 3 года назад

      @@Excelmacromastery Very easy? (Not very is.)

  • @shyamsewram1879
    @shyamsewram1879 4 года назад

    M

  • @donepearce
    @donepearce 5 лет назад +1

    5 More things I wish I *HAD KNOWN*... Just helping out.

    • @Excelmacromastery
      @Excelmacromastery  5 лет назад

      :) I know but "Knew" is a better title. I use "Had Known" throughout the video.

    • @donepearce
      @donepearce 5 лет назад

      @@Excelmacromastery Hmmm. That is the same reasoning that let Ron Howard commit that misquote crime on the line of the century "Houston, we've had a problem". OK, yours isn't exactly heinous, but it's there.