Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change the sheets (Name)

Hi

I can change the active sheets "name" from a macro by using:

ActiveSheet.Name = "newname"

But how do i change the "(Name)" from the macro?

---

Esbe

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Change the sheets (Name)

I don't understand your question. Can you provide a few more
details about what you actually want to do.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Esben " wrote in message
...
Hi

I can change the active sheets "name" from a macro by using:

ActiveSheet.Name = "newname"

But how do i change the "(Name)" from the macro?

---

Esben


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change the sheets (Name)

In the VBAprojects click on a sheet under Microsoft Excel Objects. The
look in the proberties window.
Here the sheets proberties is listed (You know that ;)

(Name) Sheet7 <-- thats the (Name) i want to change.
DisplayPageBreaks False
DisplayRightToLeft False
EnableAutoFilter False
and so on...

I can change it manually. But I want the macro to do it.

---

Esbe

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Change the sheets (Name)

Esben,

You're talking about the CodeName of the sheet. Use something
like


ThisWorkbook.VBProject.VBComponents( _
Worksheets("Sheet2").CodeName).Name = "NewCodeName"

See http://www.cpearson.com/excel/codemods.htm for more
information.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Esben " wrote in message
...
In the VBAprojects click on a sheet under Microsoft Excel

Objects. Then
look in the proberties window.
Here the sheets proberties is listed (You know that ;)

(Name) Sheet7 <-- thats the (Name) i want to change.
DisplayPageBreaks False
DisplayRightToLeft False
EnableAutoFilter False
and so on...

I can change it manually. But I want the macro to do it.

---

Esben


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change the sheets (Name)

Cool it works...

Thank you. ;)

---

Esbe

--
Message posted from http://www.ExcelForum.com



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO CHANGE BETWEEN THE SHEETS AND ONE MENU MAXRAF80 Excel Worksheet Functions 1 September 26th 06 03:14 PM
have a name change cells between sheets Michele Excel Worksheet Functions 0 March 23rd 06 10:43 PM
CHANGE SET-UP ON MULTIPLE SHEETS AT 1 TIME DEMONET48 Excel Discussion (Misc queries) 2 January 14th 05 08:37 PM
HOW CAN I CHANGE SET-UP ON MULTIPLE SHEETS AT 1 TIME? DEMONET48 Setting up and Configuration of Excel 0 January 14th 05 07:53 PM
Auto Change Formula in different sheets Ice Man[_3_] Excel Programming 1 August 5th 03 10:51 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"