+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Opening Excel file after chosing specific answer in drop down list

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Cheshire England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Cool Opening Excel file after chosing specific answer in drop down list

    Hello Guys,

    Basically in one of my spreadsheets I have a drop down list with a simple yes and no answer. What I am looking for is when somebody selects "yes", another created excel documents loads up.

    I can not seem to do this.

    I have attached a blank file to show more. The purple box is where "yes" would be selected. I have also attached a second Excel document I would like loading up when "yes" is selected.

    Thanks for any help.
    Attached Files Attached Files

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Opening Excel file after chosing specific answer in drop down list

    Something like this:
    Please Login or Register  to view this content.
    This goes in the worksheet module, right click the sheet and press view code.

    You need to change the filepath to the filepath of the workbook you want to open

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Cheshire England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Opening Excel file after chosing specific answer in drop down list

    Worked perfectly thanks very much.

  4. #4
    Registered User
    Join Date
    01-11-2012
    Location
    Cheshire England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Opening Excel file after chosing specific answer in drop down list

    Thanks for the help. Do you have any idea how I add the same option to a different cell?

    I tried the below but it doesnt work.

    Cheers

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("N:N")) Is Nothing Then
    If UCase(Target.Value) = "Y" Then
    Workbooks.Open ("K:\email.xlsx")
    End If
    End If
    End Sub
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("M:M")) Is Nothing Then
    If UCase(Target.Value) = "Lapsed" Then
    Workbooks.Open ("K:\email.xlsx")
    End If
    End If
    End Sub

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Opening Excel file after chosing specific answer in drop down list

    Like this:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1