Explanatory Formulas

Requirements: - Basic knowledge of vba - Use of tables/named ranges When working with workbooks on and off, sometimes months between revisits t...

An Improved Custom Random Numbers Function

In this article, we will create a custom function to generate random decimal numbers between the defined ranges. Raw data for this example consists o...

Select a printer tray before printing using VBA in Microsoft Excel

When you print documents from Word with VBA it's possible to select which printer tray the document is supposed to get a sheet from. In Excel you don...

Print the pages in reverse order using VBA in Microsoft Excel

The macro below can be used to print the pages of a worksheet in reverse order. Sub PrintInReverseOrder() Dim TotalPages As Long, p As Long Tot...

Print multiple selections on one sheet using VBA in Microsoft Excel

If you select multiple cell ranges on one sheet and tries to print out selected cells you will get one sheet for each of the selected areas. The fol...

Function for returning the user name using VBA in Microsoft Excel

The function below will return the user name for the logged on user, works in both Windows NT and Windows95/98. Public Declare Function GetUserName L...

Print all workbooks in a folder using VBA in Microsoft Excel

  In this article, we will create a macro to print all the Excel files within a folder. We have some Excel files within a folder which we want ...

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.