i want VBA code for column C to be auto filled cells with the word "Absent" if any cell is left blank.
i want VBA code for column C to be auto filled cells with the word "Absent" if any cell is left blank.
mubashar, you could try something like this. You will need to determine how to limit the range of column C. This code assumes the whole column up to the last used cell in C is fair game.
Greg
![]()
Please Login or Register to view this content.
it doesnot work
You dont need VBA for this. You could use a simple =IF(A2="","Absent","") in C2, copied down. Adjust references to suite
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
i want , eg if cell c1 has value "OK" , i hit enter key, it goes to cell c2, does not write anything and hit enter key , selection goes to c3 cell leaving empty c2 cell. i want when i left any cell in column c blank , the work "Absent" automatically be written in it.
OK thats different to your 1st request. You will need VBA for this
Although another option mighht be to have "absent" in all cells, and then when you go to that cell, whatever you enter will replace that
mubashar, I think this is more in line with what you want. Keep in mind, you have not given an input as to the limits of the range in column C, so, once again, I'm guessing. If it "does not work" again, then I would suggest you upload a sample workbook with data and comments, so we know *exactly* what you are needing to do.
Greg
![]()
Please Login or Register to view this content.
Maybe:
![]()
Please Login or Register to view this content.
thanks gsnidow and all others that help me. it is working nice
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks