PC Review


Reply
Thread Tools Rate Thread

Creating a New Macro

 
 
SharonJo
Guest
Posts: n/a
 
      4th Apr 2008
OK, so I have this maco to name a tab to the contents of cell A1, but I have
no idea what to do with the macro...

Sub name_um()
For Each ws In Worksheets
ws.Name = ws.Range("A1").Value
Next
End Sub

....and can I save the macro so that I can use it in other workbooks?
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      4th Apr 2008

I think Ron de Bruin does a pretty good job of explaining it.
(but I already know how to ride the bicycle <g> - you will have to be the judge)
Try here... http://www.rondebruin.nl/code.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"SharonJo"
wrote in message
OK, so I have this maco to name a tab to the contents of cell A1, but I have
no idea what to do with the macro...

Sub name_um()
For Each ws In Worksheets
ws.Name = ws.Range("A1").Value
Next
End Sub

....and can I save the macro so that I can use it in other workbooks?
 
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
Creating Macro & Macro Button Lady Success Microsoft Excel Worksheet Functions 0 7th May 2009 03:55 PM
Help with creating a Macro Liz J Microsoft Excel Misc 6 2nd Nov 2008 09:34 PM
Creating a macro which presses a button containing a recorded macro petros89 Microsoft Excel Programming 3 5th Oct 2005 02:49 PM
Creating a macro =?Utf-8?B?cGF1bE0=?= Microsoft Excel Programming 2 17th Apr 2005 10:42 PM
Need Help Creating A Macro =?Utf-8?B?TEogT3dlbg==?= Microsoft Excel Worksheet Functions 1 2nd Mar 2005 01:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:25 AM.