Open another workbook if condition met

O

Opal

I have one worksheet that is used to track daily activities.
In one column, the user must select Yes or No if a criteria
for their entry in the previous column is met. If they select
"Yes", I would like to automatically open another workbook
where they will need to add some more information.

Can anyone help me accomplish this? I have multiple cells
on multiple sheets that I need to take into account, so I
don't know if this is possible.
 
B

Bernie Deitrick

Opal,

Do you always open the same workbook, or does it depend on other values in the same row/column or
elsewhere on the sheet?

HTH,
Bernie
MS Excel MVP
 
S

Sam Wilson

This is the basis of it:


Private Sub Worksheet_Change(ByVal Target As Range)

If Not IsEmpty(Intersect(Target, Columns("A:A"))) Then

If Target.Value = "Y" Then Workbooks.Open ("C:\test.xls")

End If

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top