VBA to find network workbook and select individual worksheets

Pete_B

New Member
Joined
Aug 23, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello. I’m new to VBA and I’m struggling to figure out how code to find a workbook on a network drive, then select only certain worksheets from within that workbook.

The overall goal is to open a new destination workbook, execute the command to navigate to the source workbook and individually select one or more of its worksheets, and then have it copy several cells (always the same) back to the destination workbook. I can open a file using a specific path, but I don’t know how to find a file that could be in one of several locations on our network. I also have not had any luck finding how to select only the worksheets I need.

Any help is greatly appreciated. Thanks.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top