Excel 2003, VBA: More Default values, cell locking

network_engineer

New Member
Joined
May 14, 2011
Messages
37
Hi all,

Would somebody please help me with a small piece of code?

I.e.
- if value in Column A = "To Do"; then values in column F & G = "N/A (To Do Item)"
- - if value in Column A = "Purchases"; then default (initial values) values in column F & G = "0"

Also, that if the value in Column A = "To Do"; then values in column F & G = "N/A (To Do Item)", then no other values can be entered into the columns G & G.

Thanks a lot, really appreciate the help!

Cheers,
Ben
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Could you please explain that if you are talking about entire column or cell, I mean to say that if it is a1, a2..........
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,317
Members
452,905
Latest member
deadwings

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top