![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 10
|
I need the name of a workbook to take the name of a cell each time that cell is changed.
Example, the workbood should be named Test English when cell B5 is English, Test Economics when cell B5 is Economics, Test Accounting when cell B5 is Accounting and so on and so on. Your help will be appreciated. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Just checking to make sure...
The name of the workbook or the worksheet? To change just the name of the worksheet, use the following code:
To save the entire workbook with the new name use this code:
In either case, right-click on the activesheets tab, choose view code, and paste the selected procedure... Any problems, post again. Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|