Md. Abu Sina Ibne Albaruni holds a BSc in Mechanical Engineering from Bangladesh University of Engineering and Technology. He is a dedicated employee of the ExcelDemy project. He has written quite a large number of articles for ExcelDemy. Besides, he has expertise in VBA. He efficiently automates Excel issues using VBA macros and actively engages in the ExcelDemy forum, offering valuable solutions for user interface challenges. His areas of interest in work and study span MATLAB, Machine Learning, Image Processing, Solidworks, LaTex, Python, Microsoft Office, and creating Excel applications.
Reason 1 - Incorrect Workbook Reference The following code has an incorrect workbook reference. Running this code will give runtime error 438. To understand ...
Introduction to the MsgBox Function in Excel VBA The MsgBox function is used to display a message box in Excel VBA. It is a dialog box that displays ...
When and Why Is the Dialog Box Hidden in Excel? While multitasking, dialog boxes may get lost behind active windows or applications. Sometimes ...
Here is an image overview of using a constant (vbNewLine or vbCr) of the InputBox function that allows multiple lines in the InputBox. This InputBox, with a ...
This is an overview. Method 1 - Combine the LARGE and the VLOOKUP Functions to Extract Associated Text Data in Excel The dataset ...
This is an overview: Method 1 - Using the Percentage to Create a Gender Pie Chart in Excel Steps: Select the cell to get the ...
In a large dataset with numerous entries, there may be many blank cells. You may need to identify those empty cells. We can use the ISBLANK function to find ...
Method 1 - Using Insert Picture Feature to Insert Multiple Pictures at Once in Excel Steps: Go to the Insert tab and then click on Pictures. In ...
Hi,
Thank you for your comment. From the problem you have stated, it looks like you need to just modify the previous code a little bit. You can use the following code to accomplish your task.
Regards,
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Dear VSP
Thank you very much for your question. I appreciate your interest in our article. I will show you the step-by-step process to create a macro according to your preferences. Also, you will be able to send automated emails on the due date without running the code.
● First, create the workbook. I am creating a sample workbook that has Message, Date, Status of work, and Email addresses in specific positions that you have mentioned.
● Select your entire dataset.
● Go to the Insert tab >> Table.
● Check the My table has headers option.
● Press OK.
● Sort your data according to your Email address.
● Now go to the Developer tab >> Visual Basic.
● Go to ThisWorkbook and paste the following code into the VBA Macro Editor.
● Save the file as Excel Macro-Enabled Workbook (.xlsm) file.
● Now, to automatically send emails, type Run in your Start Menu and open the Run dialog box.
● Paste the following path there and press OK.
%AppData%\Microsoft\Windows\Start Menu\Programs\Startup
● Place your Excel file in the Startup folder.
Now whenever you open your PC, the VBA code of your Excel file will be automatically executed. Emails will be sent to the given email addresses according to the criteria you mentioned.
Notes:
● Stay logged in to your outlook application. We are using the OUTLOOK Microsoft 365 Office application.
● The provided code sends an email for the current date. You can customize it for any date.
● Make sure that your active worksheet contains the sorted table and save the file accordingly.
You can download the sample Excel file from here.
Send Emails.xlsm
If you have any more questions, please let us know in the comment sections.
Regards,
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Dear SHERI
Thank you very much for your inquiry. I appreciate your interest in our article. You can copy worksheets from one workbook to another without mentioning the names of the worksheets. You have to slightly change the VBA code. I have modified the code and provided it here for your convenience.
Keep two things in mind before running the code:
● You must keep both workbooks open.
● You must run the code in the destination workbook.
Paste this code in the VBA Macro Editor of your destination workbook and press the Run button or F5 key to run the code.
If you have any more questions, please let us know in the comment section.
Regards
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Dear NIRMAL
Thank you for taking the time to read this article. I can see that you are facing a problem while executing the code in method 3. I guess It is Run-time error ‘1004’.
Kindly note that you need to modify the file path according to the folder where you are storing your pictures. You also have to specify the type of the image (jpg, jpeg, png, etc.) correctly. So, you should change the LocationPic variable in the code accordingly.
For your convenience, I am attaching a photo indicating the exact portions of the code that you need to re-write.
If you have any more questions, please let us know in the comments.
Regards
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Dear BENJAMIN THORPE
Thank you very much for your interest in our article. You can create an auto-prompt dropdown in Excel. In the dataset, we have the names of multiple people.
Simply follow the steps below:
● Go to the Developer tab >> Insert >> Combo Box (ActiveX Control).
● Then place the newly created ComboBox.
● Double-click on the ComboBox.
● A VBA window will pop up. Paste the following code into the window.
● Now, go back to the worksheet and click on the Design Mode from the Developer tab to turn it off.
● Double-click on the ComboBox and you will see an InputBox asking for the list.
● Select the list from your dataset and press OK.
● You will have the auto-prompt drop-down list.
You can also download the Excel file from here.
Excel Auto Prompt Drop-Down.xlsm
If you have any more queries, please let us know in the comments.
Regards
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Dear KAZEM
Thank you for taking the time to read this article. I see that you are facing a problem while executing the code. It is the Run-time error ‘1004’. There are several possible reasons for this error. In your case, I believe you are having this issue because the file path you specified is incorrect or unavailable. Please note that you need to modify the file path according to the destination where you want to save the PDF file. You have to change the file path portion in the Filename variable.
For your convenience, I am attaching a photo indicating the exact portion of the code that you need to re-write.
If you have any more questions, please let us know in the comments.
Regards
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Hi SUMBO,
We have sent you an email. Please see the attached document in it.
Regards
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Hello Z L
Thank you very much for your response. We have modified this article and introduced some new statistical concepts and functions. Would you please go through it again?
If you have any more questions, let us know in the comment section.
Thanks
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Hi YOGAAGA
Thank you very much for your comment. A few limitations while working with these functions have been discussed in the NOTES section. Please go through them. In addition, here in the dataset, the VLOOKUP function has been used in combination with the LARGE function. Both the VLOOPUP and LARGE functions go through the entire range of data every time they are called. The LARGE function needs to sort the data before determining the result. The VLOOKUP function looks for the data in a specified range. The whole process can be computationally expensive in large datasets. So, this formula can be time-consuming when dealing with large amounts of data.
Moreover, this formula may return identical values if it encounters duplicates in the dataset. For example, in our dataset, if there are multiple students with the same CGPA, the formula will return the same student’s name for each duplicate value.
Thank you once again. Let me know in the comments if you have any further queries.
Regards,
Md. Abu Sina Ibne Albaruni
Team ExcelDemy
Dear Datla Srinivas,
We have sent you an email. Please find the attached documents in it.
Best wishes
Md. Abu Sina Ibne Albaruni
Team ExcelDemy