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 ...

Macro to return user name and computer name in Microsoft Excel

In this article, we will create a macro which will return computer and user name for the logged in user. In this example, we want to extract computer...

Insert headers and footers using VBA in Microsoft Excel 2010

If you want to insert certain information in the header / footer of the worksheet like the file name / file path or the current date or page number, y...

Problem: The Characters Are in Reverse Order

To reverse the character order, create and add a Custom Function to the Insert Function dialog box: 1. Press Alt+F11 to open the VBE. 2. In VBAPro...

How to Change The Default Printer Using VBA in Microsoft Excel 2016

Hi There! Is your default printer situated in the far corner of the office? Want to print your sheet from the printer by your side? You can c...

Conditional formatting depending on a cell comment using VBA in Microsoft Excel

Question: How can I make a conditional formatting depending on a cell commentary? Answer: Insert the following code into the standard module Formula...

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.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube