If you have copied a worksheet in an Excel Workbook using the Move or Copy activity, then you know that there is much to be desired during this experience. Because this activity is designed to Move or Copy multiple clicks must be made to copy the Excel Worksheet where and how you want. It is easy to forget the small checkbox confirming you want to Copy the Excel Worksheet and not Move it which is the default behavior. The Move or Copy activity gives the appearance that you can only copy one Excel Worksheet at a time but that is not the case. You can use Ctrl or Shift to make multiple selections of Excel Worksheets before accessing the Move or Copy activity. We noticed all of this at Leverage & Lean which is why we created the Excel Copy All Worksheets macro! This Excel macro will loop through all available worksheets and copy then either immediately after the current worksheet or append to the end of all available worksheets. You will be prompted to decide via a Message Box on the Excel Worksheet copying behavior. While the Message Box can be helpful if you vary between copying worksheets immediately after or at the end of all worksheets. If this is not the case the Excel Copy All Worksheets macro can easily be set to a default copy behavior or even split out into two separate macros to avoid the prompt all together. Not only does this Excel macro provide a fast way to copy all worksheets in an Excel Workbook it also gives you the opportunity to customize the naming convention of the newly copied worksheet with some simple code updates. If you are looking for something more robust and simply put AWESOME, then checkout our Insider version of the Excel Copy All Worksheets macro! The Insider version of this Excel macro will allow you to only copy the worksheets you select vs the entire worksheet collection. Also, if you want to copy worksheets to a different Excel Workbook this macro will prompt you to select between the Active Excel Workbook vs other Excel Workbooks currently open!
See it in Action
Watch this video to see this macro in action.
Here is the code for this macro. Make sure the following References are setup before running it: Visual Basic For Applications, Microsoft Excel 16.0 Object Library
Here is the Insider code for this macro. Brief Description of differences between FREE Code and Insider Code. Make sure the following References are setup before running it: Visual Basic For Applications, Microsoft Excel 16.0 Object Library
Is focused on improving computer processes by Leveraging programming and applying Lean principles. It is our goal to make you more efficient and effective on your computer producing “Less Clicks and More Results!”
In regards to Word Create Outlook Email with Selected Text | VBA Macro #29
This is so perfect!
Thank you so much!
At my job, we recently switched over to Office 365.
Previously we had an email template that we could fill out (using field codes [select all+F9]) but that is no longer available in Office 365, as only Word has the Field Code capability now.
I was trying to find some sort of solution using Word, and yours was the best thing I could find on the web!
YOU are the awesome one!
In regards to Excel Find and Replace across Multiple Word Documents | VBA Macro #30 and custom work.
The use case for CheckTheBible.com was to convert all the variations of Bible verse codes (B C:V - Book Chapter:Verse) in any text to a standardized code. For example, "John 17:21" should be "Joh 17:21." Once the variations are converted, then the next step is to convert them to a markdown language so they can be used in Obsidian.
I found Brent through his YouTube channel: Leverage & Lean (https://www.youtube.com/LeverageLean). Out of all the macro videos, the "Excel Find and Replace across Multiple Word Documents" video seemed like it could help automate a seemingly manual process.
I contacted Brent to see what could be done with my use case. From our first discussion, Brent has always been very understanding and patient with my situation and listened to my suggestions for improving the macro’s speed and efficiency.
Once he understood the end goal, Brent took my improvements to heart and ran with them. Now with this improved macro, I can take on any set of variables, modify a few words, and convert them to the final result. This custom macro searches Word Documents for Bible verse codes, uses a standardized list of 30+ thousand B C:V codes to convert to the markdown language automatically with 100% accuracy.
I have had a great experience working with Brent. Not only does he clarify expectations so it was set up for success, but most importantly, he has always come up with creative and comprehensive suggestions even outside the scope of macro building. Brent was really consulting me to do more than what I had thought possible.