ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert worksheet (https://www.excelbanter.com/excel-programming/331694-insert-worksheet.html)

manillla

Insert worksheet
 
I am trying to insert a worksheet from file into an open workbook via VBA code.
What should the code look like??

Gary's Student

Insert worksheet
 
Yes.
Click on a cell, then select Insert Hyperlink.
Then use the browser to select the Word document you want.
--
Gary's Student


"manillla" wrote:

I am trying to insert a worksheet from file into an open workbook via VBA code.
What should the code look like??


William Benson

Insert worksheet
 
The file with the worksheet you want has to be open first, or else you will
have to open it.

Then:

Workbooks("COPYFROM").Worksheets("DESIREDSHEET").C opy _
befo=ActiveSheet


Workbooks("CopyFromFile.xls").copy
"manillla" wrote in message
...
I am trying to insert a worksheet from file into an open workbook via VBA

code.
What should the code look like??





All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com