ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change hardcode to ....? (https://www.excelbanter.com/excel-programming/328504-change-hardcode.html)

Stuart[_21_]

Change hardcode to ....?
 
I do not wish to stop a user changing the tab name of a particular sheet,
but if they do, then I need to keep track of it.
Say the tabname is "Temp" and the codename is Sheet1, as an example, how
would I amend the following, please?

If ws.Name = "Temp" Then

Regards.



Bob Phillips[_7_]

Change hardcode to ....?
 
Is ws.Codename = "Sheet1" Then

--
HTH

Bob Phillips

"Stuart" wrote in message
...
I do not wish to stop a user changing the tab name of a particular sheet,
but if they do, then I need to keep track of it.
Say the tabname is "Temp" and the codename is Sheet1, as an example, how
would I amend the following, please?

If ws.Name = "Temp" Then

Regards.





Bob Phillips[_7_]

Change hardcode to ....?
 
Sorry, that is If not Is

--
HTH

Bob Phillips

"Stuart" wrote in message
...
I do not wish to stop a user changing the tab name of a particular sheet,
but if they do, then I need to keep track of it.
Say the tabname is "Temp" and the codename is Sheet1, as an example, how
would I amend the following, please?

If ws.Name = "Temp" Then

Regards.





Stuart[_21_]

Change hardcode to ....?
 
Got it, thanks.
Regards.

"Bob Phillips" wrote in message
...
Is ws.Codename = "Sheet1" Then

--
HTH

Bob Phillips

"Stuart" wrote in message
...
I do not wish to stop a user changing the tab name of a particular sheet,
but if they do, then I need to keep track of it.
Say the tabname is "Temp" and the codename is Sheet1, as an example, how
would I amend the following, please?

If ws.Name = "Temp" Then

Regards.








All times are GMT +1. The time now is 10:29 AM.

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