IF Cell value is given error then show warning msg as user form

ootkhopdi

Board Regular
Joined
Sep 30, 2013
Messages
68
hi all

i have create a worksheet in which cell "c4" value is filled by input box value..
i want to create warning user form which show on error i.e.

cell c4 is blank or cell value of C4 given error in calculation or cell value of i2, which is the result of value on cell c4 value is = #N/A
or cell i2 value is blank..

please give me solution..
i tried many codes but not solve problem..

please give me solution..
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Something like...

Code:
c4value = workbooks("Workbookname").Worksheets("Worksheetname").range("c4").value
i2value  = workbooks("Workbookname").Worksheets("Worksheetname").range("I2").value

if iserror(c4value) then
    msgbox "Cell C4 contains an error."
Elseif iserror(i2value) then
    msgbox "Cell I2 contains an error."
Elseif c4value = "" then
    msgbox "Cell C4 is blank."
Elseif i2value = "" then
    msgbox "Cell I2 is blank."

Endif
 
Upvote 0
Can some one tell me how can go direct to row of other sheet which cantains value = text box1 value in column c.
means textbox1 value is working as hyperlink address
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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