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

  • Home
  • SEARCH
  • 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 7604419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:54:16+00:00 2026-05-30T23:54:16+00:00

I am having few excel files where each file have multiple workbooks. Assume following

  • 0

I am having few excel files where each file have multiple workbooks.

Assume following are the workbook names.

Introduction
Testcase
Testresult

Also assume all the xls files are under same folder (For ex: C:\Servers)

Testsample.xlsx
TestExecution.xlsx    and few more xlsx files ...

I want to create resultant files where only testresult workbook should be there.

Resultant files like ,

Testsample-res.xlsx
TestExecution-res.xlsx
and few more resultant xlsx files

How to keep only the testresult workbook in new xls files? (Using powershell script)

  • 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-30T23:54:17+00:00Added an answer on May 30, 2026 at 11:54 pm

    This will move the Testresult sheet to a new excel document (replace Move() with Copy() to leave the original sheet in the source doc):

    $xl = New-Object -ComObject Excel.Application
    $xl.Visible=$true
    $wb = $xl.Workbooks.Add('D:\Book1.xlsx')
    $wb.Sheets.Item('Testresult').Move()
    $xl.ActiveWorkbook.SaveAs('D:\Testresult.xlsx')
    $xl.Quit()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a few problems creating a SQL Query. I have the following tables:
I'm having few doubts on implementing file downloads. I'm creating an app where I
I've set up django with haystack but im having a few problems. I have
I'm having a few issues with Android/Eclipse with using Android Market Billing. I have
I have been having a few issues using the quadrature function in python 2.7
Having a few issues trying to think of a good way to have a
I am having a few memory problems with a long running application; I have
Having few issues with my copy program which creates a copy of a file
Let's say we have a Lucene index having few documents indexed using StopAnalyzer.ENGLISH_STOP_WORDS_SET .
I am having a few problems with how I've structured my App. I have

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.