VBA help

iktpq

New Member
Joined
Nov 28, 2011
Messages
38
Hi, this is sort of relating to a post a made last week http://www.mrexcel.com/forum/excel-...s-make-cell-mandatory-based-another-cell.html

but is sort of different

Basically i have a sheet that is used for quality porposes, once filled in we press an upload button which then takes all that data to a separate sheet.

everything i have set up is working fine. what i now need is..

i have a cell (E83) which has a drop down and options from 0,1,3 or 5 and a percentage in cell (E15) i need to put in the VBA that if e15 is 100% then E83 must be 0 and if it is less than 100% then E83 just be either 1,3 or 5

i tried using what Alan_P helped me with in the post up there ^^ but i couldnt get it to work

What i need it to happen is. if this is correct move on to the next part of the code if its false to show a msg box.

Hope this makes sense. Thanks for reading
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
i seem to have worked it out, i still used what Alan_P showed me but i was using 100% in the vba after reading around i now know that it needs to be 1 not 100%.

mods either close or delete this thread. thanks
 
Upvote 0
As a matter of interest, can you post your code?

thanks

FarmerScott
 
Upvote 0

Forum statistics

Threads
1,214,377
Messages
6,119,183
Members
448,872
Latest member
lcaw

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