Replace text in sheet names
Replace text in sheet names
Replace text in sheet names
Replace text in sheet names
Replace text in sheet names
Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names
Replace text in sheet names Replace text in sheet names
Replace text in sheet names
Go Back  Xtreme Visual Basic Talk > > > > Replace text in sheet names


Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2017, 03:15 AM
mogilshik's Avatar
mogilshik mogilshik is offline
Junior Contributor
 
Join Date: Aug 2003
Location: Saint-Petersburg
Posts: 369
Default Replace text in sheet names


Hello!

I wonder if I can search and replace specific text in sheet names?

Let’s say I have these sheet names:

product-style-one
product-style-two
product-style-three

Can I replace style with type? So that the sheet tabs have these names:

product-type-one
product-type -two
product-type –three

Thank you and hope this is possible!
__________________
Look past them as though there's something there which is distracting you. When they turn around to see what it is, hit them on the head with an esky lid. Pretend it fell from a tree, even if there are no trees around
"...21 Fun Things To Do Or Say When Your Being Yelled At.."
Reply With Quote
  #2  
Old 12-16-2017, 08:14 PM
Kluz's Avatar
KluzReplace text in sheet names Kluz is offline
Sapience.Aquire

Super Moderator
* Expert *
 
Join Date: Oct 2003
Location: Lake Bluff, Ill., U.S.
Posts: 3,451
Default

Code:
Sheets("product-style-one").Name = Replace(Sheets("product-style-one").Name, "style", "type")
__________________
No the other right mouse click
Reply With Quote
Reply

Tags
names, product-type, replace, sheet, text


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Replace text in sheet names
Replace text in sheet names
Replace text in sheet names Replace text in sheet names
Replace text in sheet names
Replace text in sheet names
Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names Replace text in sheet names
Replace text in sheet names
Replace text in sheet names
 
Replace text in sheet names
Replace text in sheet names
 
-->