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 6244865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:24:14+00:00 2026-05-24T12:24:14+00:00

How do I activate my Other workbook from the Current workbook? I have a

  • 0

How do I activate my Other workbook from the Current workbook? I have a current workbook with dumb.xls and The other workbook name as Tire.xls.I have opened the Tire.xls from the dumb.xls using worksbooks.open filename:= "name of the file".Its getting open but The problem is Im unable to make it work.

If I say cells(2,24).value=24 puts these value in the cell of dumb.xls but I want it to be done one Tire.xls.

activesheet.cells(2,24).value=24 puts these on Tire.xls. But how do i activate the Workbook with the name ? I need to open 3 to 4 excel workbooks And perform the operation? How do I activate the specific workbook

I have found this code on google

     activeworkbook.worksheet("sheetname").activate  ' but not working
     windows("sheetname").activate ' people on google suggested not to use

Its not getting activated. I dont know how to make it work. Can anyone tell me How do i activate a specific workbook and a specific sheet of the other workbook ?

Example: I have niko.xls and niko_2.xls opened as workbooks from the dumb.xls workbook so totally 3 workbooks and I have to activate the 2nd sheet of niko_2.xls workbook.How do I make it? Can anyone explain me the syntax with these example? Thank you in advance

  • 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-05-24T12:24:14+00:00Added an answer on May 24, 2026 at 12:24 pm

    You do not need to activate the sheet (you’ll take a huge performance hit for doing so, actually). Since you are declaring an object for the sheet, when you call the method starting with “wb.” you are selecting that object. For example, you can jump in between workbooks without activating anything like here:

    Sub Test()
    
    Dim wb1 As Excel.Workbook
    Set wb1 = Workbooks.Open("C:\Documents and Settings\xxxx\Desktop\test1.xls")
    Dim wb2 As Excel.Workbook
    Set wb2 = Workbooks.Open("C:\Documents and Settings\xxxx\Desktop\test2.xls")
    
    wb1.Sheets("Sheet1").Cells(1, 1).Value = 24
    wb2.Sheets("Sheet1").Cells(1, 1).Value = 24
    wb1.Sheets("Sheet1").Cells(2, 1).Value = 54
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I defined a macro in one worksheet(internal.xls) as Public Sub sheet2test() Workbooks.Open Filename:=external.xls Windows(external.xls).Activate
I have a main Silverilght project and other modules and I'm using Prism to
This macro should activate tabs in sequence from 1th to 5th and then again.
How might it be possible to activate one of PowerPoint's ribbon buttons from C#
I'm using multiple sheets within my Excel application and want to activate (set focus
I'm working on a project that gets callbacks from some other sites' API. I
I'm facing a problem I have never had before. The other day when I
Using Access VBA, I want to open an XL file, do stuff, then close
in other words, suppose I want to send data, like text, programmatically from a
So, in a Workbook, I have two worksheets: One has a table full of

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.