ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Retieve Workbook Name via code (https://www.excelbanter.com/excel-discussion-misc-queries/150056-retieve-workbook-name-via-code.html)

RobN[_2_]

Retieve Workbook Name via code
 
Is there some code that will retrieve a workbook name?

What I'm trying to do within some code (in an xl template) is to activate
the workbook again after the procedure has done some activity in another
workbook. But the workbook that has the code in it doesn't always have the
same name.

Rob



JMB

Retieve Workbook Name via code
 
Thisworkbook.Activate


"RobN" wrote:

Is there some code that will retrieve a workbook name?

What I'm trying to do within some code (in an xl template) is to activate
the workbook again after the procedure has done some activity in another
workbook. But the workbook that has the code in it doesn't always have the
same name.

Rob




RobN[_2_]

Retieve Workbook Name via code
 
Thanks JMB....so simple!

Rob

"JMB" wrote in message
...
Thisworkbook.Activate


"RobN" wrote:

Is there some code that will retrieve a workbook name?

What I'm trying to do within some code (in an xl template) is to activate
the workbook again after the procedure has done some activity in another
workbook. But the workbook that has the code in it doesn't always have
the
same name.

Rob







All times are GMT +1. The time now is 09:23 PM.

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