PC Review


Reply
Thread Tools Rate Thread

Convert code name

 
 
Karen53
Guest
Posts: n/a
 
      29th Feb 2008
Hi,

If I have a list of sheets codenames saved on a worksheet, how do convert
them back to sheets(shname)?

Here's one I've tried:

Dim SheetName As String
Dim shCodeName As String

shCodeName = MainPagepg.Range("BD" & Newrow - 1).Value

AfterShName = Replace(shCodeName.Name, "'", "''")
--
Thanks for your help.
Karen53
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      29th Feb 2008
Loop through the sheets in the workbook and check the codename for each one
until you get a match.
There's no fixed way to convert directly from one the the other: you could
have a "Sheet1" with codename "shtData".

Tim



"Karen53" <(E-Mail Removed)> wrote in message
news:BDFBFCE6-FE0D-427B-8A57-(E-Mail Removed)...
> Hi,
>
> If I have a list of sheets codenames saved on a worksheet, how do convert
> them back to sheets(shname)?
>
> Here's one I've tried:
>
> Dim SheetName As String
> Dim shCodeName As String
>
> shCodeName = MainPagepg.Range("BD" & Newrow - 1).Value
>
> AfterShName = Replace(shCodeName.Name, "'", "''")
> --
> Thanks for your help.
> Karen53



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linq to XML--Are there code examples that make Linq as easy as SQL? Or how can I convert ths simple pseudo code into real code? Reece Microsoft C# .NET 4 10th Dec 2008 03:13 AM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Access Queries 1 12th Sep 2006 07:22 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Access 2 12th Sep 2006 06:13 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Access Macros 0 12th Sep 2006 05:04 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Excel Programming 1 12th Sep 2006 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:41 AM.