MD. ABDUL KADER is an engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SWM, GIS, RS, and SPSS. He holds a B.Sc in Urban & Regional Planning from Chittagong University of Engineering and Technology and has shifted to become a content developer. In this role, he crafts technical content centred around Excel and VBA. Outside the professional realm, catch him immersed in books, exploring new places during travels, and watching movies.
The dataset showcases ID (7 digits), Name, and ZIP Code (5 digits) in a single cell. To extract ID and ZIP Code: Method 1 - Using the ...
Let’s introduce today’s dataset where the Names of some employees are provided along with their corresponding States and E-mails (inserted sequentially). Let's ...
The sample dataset contains student scores in Math and Psychology as well as each student's group. We'll rank the students according to the scores. ...
Example 1 - Merge a Single Page in an Excel File into a Word Document The sample dataset showcases a sales report: Sales Rep, Product ID and Category, States, ...
We'll use a simple dataset where the Number of Visits for each website is provided along with the Names and Categories of the Sites. We want to add a column to ...
The sample dataset showcases Number of Visits of websites, their Name and Category. Dates and Platforms are also given. Solution 1 - There are Blank ...
Method 1 - Print Only Table from an Excel Sheet Our sample dataset is in the B4:I79 cell range. The worksheet has a chart, the table, and the title of ...
Let’s introduce today’s dataset (B4:E15 cell range) as shown in the following screenshot. Here, the Number of Visits for each website is provided along with ...
Fix 1 - If the Row Height Is Fixed If the row height is predefined, you get the problem of cutting off words after wrapping the text in Excel cell. We went ...
Let’s assume we have two different datasets with a common field (Employee Name) in two different sheets in two workbooks. The first dataset is in Sheet1 of the ...
The dataset showcases Quotes and the corresponding Authors. Each quote covers 3 cells and the text isn't completely displayed. Wrap the text after merging ...
Let’s say, you know the values of two known points A (x1,y1) and C (x2,y2) of a straight line and you want to determine the unknown value y from the point of B ...
The dataset showcases Items and Sales over three months. To calculate the running total by group (Month), choose a month: Method 1 - Running ...
The example dataset below shows the yearly Sales of various Products. The entire dataset is located in the B4:D13 cell range. Method 1 - Using the ...
The following sample dataset of Purchase Price and Selling Price are provided in USD for each Product. If you subtract the Selling Price from the Purchase ...
Hello EAC,
Thanks for your question. Most likely, you need to put a not equal sign (<>) inside the If…Then statement of your second code. So, the corrected second code will be as follows-
However, your used three codes are quite messy. I would like to suggest that you can use the following code to lock a specific cell range in all worksheets of your Excel file.
Again, try this code to unlock the specific cell range in all worksheets.
I hope these will work! Moreover, you can follow lock and unlock cells using VBA to explore more efficient methods.
Hello Michael,
Please specify your problem in detail or send the excel file via [email protected] email address.
Dear Deka,
It’s nice to hear from you with such wonderful appreciation. I myself always try to represent Excel applications in a more user-friendly way. And we, the ExcelDemy team, are working as a one-stop Excel solution provider.
Thanks, and take care of yourself. Goodbye!
Md. Abdul Kader
Editor, ExcelDemy.