LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Tab name matches cell


Hi

I asked the question a few days ago how to get a tab name to match the
data in cell h2. Somebody kindly gave the following formula..

Private Sub Worksheet_Activate()
Sheets(1).Name = Range("H2").Value
End Sub

I must be doing something wrong as it doesnt seem to work. I have
entered the formula by right clicking on the tab of the open worksheet
....clicking on "view code" and pasted it into PDFWriter.xla - module1
(Code).....as you may have already gathered I havent got a clue what Im
doing so any help in the simplest of terms would be greatly appreciated

Regards

Nigel


--
Nigel
------------------------------------------------------------------------
Nigel's Profile: http://www.excelforum.com/member.php...o&userid=25696
View this thread: http://www.excelforum.com/showthread...hreadid=394755

 
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
excel sum values if cell matches a value Dennis Excel Worksheet Functions 1 March 16th 10 04:43 AM
How to Merge Two Cells IF Another Cell Matches suzikeith Excel Worksheet Functions 2 October 13th 09 02:49 AM
If a cell matches a list of values...... Simon Excel Discussion (Misc queries) 3 August 14th 09 09:01 PM
Find first and/or last cell that matches data Molasses26 Excel Programming 2 April 8th 05 08:43 PM


All times are GMT +1. The time now is 02:03 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"