Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8304561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:52:53+00:00 2026-06-08T17:52:53+00:00

I have a Search Engine which draws from two different workbooks, one which the

  • 0

I have a Search Engine which draws from two different workbooks, one which the search engine is in, so thats easy, but the other is seperate.

I am wondering if there is a way to link them so that if one is opened, the other will. These will be put on a wiki and I need them both to be downloaded, is there a way to put them both into the same file but keep them separate at the same time?

I’m guessing the answer will be no, but it doesn’t hurt to pick your brains 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:52:55+00:00Added an answer on June 8, 2026 at 5:52 pm

    The most practical approach would be placing code in each file to

     - check if the other file eas already open 
     - if not then either
         - open the other file (assuming the same location) if not already open
         - report the file as missing
    

    To do this you would place code like below in the ThisWorkbook module of each of the two workbooks.

    Note that the code disables events to avoid a newly opened file trying to re-open the initial file (although the code will still handle this

    Use the same code in the second book, but update the strFil variable for the name of the other book

    File#2

    Private Sub Workbook_Open()
    'This File is File02.xlsm
    'Other file is File01.xlsm
    Dim strFile1 As String
    Dim wb As Workbook
    strFile = "File01.xlsm"
    On Error Resume Next
    Set wb = Workbooks(strFile)
    On Error GoTo 0
    'if file is already open then leave sun
    If wb Is Nothing Then
    With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
    .EnableEvents = False
    On Error Resume Next
    Set wb = Workbooks.Open(ThisWorkbook.Path & "\" & strFile)
    On Error GoTo 0
    .ScreenUpdating = True
    .DisplayAlerts = True
    .EnableEvents = True
    End With
    End If
    'file not present
    If wb Is Nothing Then MsgBox strFile & " not present", vbCritical
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a search engine which works well, but I want it to
I have been trying to create a new google custom search engine, but when
I have a database application (or search engine) which is called Solr. I connect
I need to implement a search engine. So I have a dictionary which is
I've a project which ask me to do such a BIG search engine but
I have a Wordpress-based website which uses Sphinx as a search engine, with a
I have a problem. I want to create a search engine which is based
Which search engine would you recommend for a Commerce website? We have millions of
I have a problem. I made a simple search engine which searches by brand
I have a members control panel page which I don't want search engine to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.