Excel Query with IF, Vlookup and Data Validation

ANAND KUMAR

New Member
Joined
Oct 20, 2016
Messages
41
Dear Experts,

I found myself in a situation of help - I have a file which is attached at following URL

https://drive.google.com/open?id=0Bxtc6jUuxe_pY0hoQXBsaWNhOTg

So If C24 is Yes then E25 needs a value (from drop down – otherwise it needs an error message to detail the spec). Equally if C24 is No or blank then E25 must also be blank (or show error message)

Same is also true for C22 and E22

How can I lock it too? I also need to add a button at the bottom to export to pdf.

Thanks in Advance for any Help.
 
Yes. Went to desktop copied the path of file by Shift+Right click and made changes accordingly. But unfortunately didn't work.

Don't know why as I am novice with Excel.

Would it be helpful if you could share the file via mail into my Inbox.
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I am quite weak in the area of PDF, just did look it up to see what it was about. I know very little about it and have never used any PDF's.

A new post asking for help with PDF's would be a better way to go.

Howard
 
Upvote 0
I have a code which can export, But unable to assign this with Macro / Button.

Sub luxation2()
Dim Filename As String
Filename = "ANANDKUMAR"



Dim shtAry()
ReDim shtAry(1) ' this is an array of length 2
For i = 1 To 2
shtAry(i - 1) = Sheets(i).Name
Debug.Print Sheets(i).Name
Next i
Sheets(shtAry).Select
Debug.Print ThisWorkbook.Path & ""


ActiveSheet.ExportAsFixedForma<wbr>t xlTypePDF, ThisWorkbook.Path & "/" & Filename & ".pdf", , , False

End Sub

Could you please have a look over this.
 
Upvote 0
With the button on the sheet, right click the button and select Assign Macro then find the macro name in the pop up window click on it then OK.

Howard
 
Upvote 0
I have appended these two codes together and luckily problem got resolved.

Thanks a lot Howard for your continuous support ☺.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,616
Members
449,238
Latest member
wcbyers

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