Forum

Validation of cells...
 
Notifications
Clear all

Validation of cells before SAVING with VBA in Excel

5 Posts
2 Users
0 Reactions
71 Views
(@azidgill)
Posts: 15
Eminent Member
Topic starter
 

Hi 

Can please someone help. I want to write a VBA code for attached sheet. 

If client selects Personal in Colum D - no further action required 

if selects Business in column D - column E, F, G should be compulsory and requires filling validation to SAVE the file . 

Thanks in anticipation, 

Regards, 

Azid 

 
Posted : 13/08/2020 9:13 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Azid,

Please see the attached workbook which does what you want.  I've created data validation lists for Cols D and G.

I've created some conditional formatting formulas which highlight cells in Columns E, F and G if they need to be filled in. 

It's a good visual indication to the user what they need to do and you can refer to these coloured cells in the pop-up warning message.

Regards

Phil

 
Posted : 13/08/2020 11:23 pm
(@azidgill)
Posts: 15
Eminent Member
Topic starter
 

Hi Philip, 

You are legend mate!

Thanks for your prompt action and help. 

I am currently testing this and will contact you if required any modifications. 

Kind regards, 

Azid 

 
Posted : 14/08/2020 3:10 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

no worries 🙂

 
Posted : 14/08/2020 3:12 am
(@azidgill)
Posts: 15
Eminent Member
Topic starter
 

Hi Philip, 

I want to learn VBA (for excel and word). Do you offer such course (including practice sheets)?

How much it will cost ?

Do you also help students if they stuck somewhere. 

Thanks in anticipation. 

Regards, 

Azid 

 
Posted : 14/08/2020 5:10 am
Share: