Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 118
Default ActiveSheet.CodeName?

Charlotte...Use "name" instead of "codename"...Ron

ActiveWorkbook.Worksheets.Add
WS_CodeName = ActiveSheet.Name
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default ActiveSheet.CodeName?

ron explained on 3/9/2011 :
Charlotte...Use "name" instead of "codename"...Ron

ActiveWorkbook.Worksheets.Add
WS_CodeName = ActiveSheet.Name


The value held in the CodeName property is not necessarily going to be
the same as the value held in the Name property for any given
worksheet. Since both props are read/write we can make them whatever we
want OR use a known CodeName (NOT editable via the UI) to get a
sheetname which IS editable via the UI and so may have been changed by
user.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


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
ActiveSheet.CodeName? Charlotte E[_2_] Excel Programming 7 March 11th 11 02:40 PM
Codename not set BigJimmer Excel Programming 3 February 27th 10 04:49 AM
Use a password in VBA ActiveSheet.protect & ActiveSheet.unprotect? Jim K. Excel Programming 2 June 2nd 08 08:09 PM
Copying new activesheet after other activesheet is hidden? Simon Lloyd[_790_] Excel Programming 1 June 20th 06 10:02 AM
codename help Gary Keramidas Excel Programming 14 October 31st 05 12:32 AM


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

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

About Us

"It's about Microsoft Excel"