Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exel VBA - Sheets.Name

Hi everybody!

I have a following kind of problem and I'm very pleased if somebod
could help me.

I'm trying to name a sheet with a name referring to cell.

Here is an example what I'm trying to do:

I have a date in cell "A1" which is changing every day and I would lik
to write a macro which creates a new name to old sheet when I do th
macro. If the original sheet is called “Sheet1” after doing this macr
it should be e.g. “Sheet118.6.2004” or “18.6.2004”.

I tried to find a way to do this with Sheets.Name, but I couldn’t fin
the right way. Actually I don’t now if it’s even possible but I hop
that somebody knows.


Thank you very much if you could help me!

-Tims

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exel VBA - Sheets.Name

this should do the trick

Sub SheetName()
dt = Format(Date, "dd.mm.yy")
ActiveSheet.Name = "Sheet-" & dt
End Sub


- Mangesh
Goa, Indi

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exel VBA - Sheets.Name

Thanks!

It really works!

-Tims

--
Message posted from http://www.ExcelForum.com

Reply
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
HELP WITH EXEL ARIES Excel Worksheet Functions 3 August 28th 09 03:16 PM
Getting the sum of the same cell in defferent exel sheets. Anakin7279 Excel Discussion (Misc queries) 2 September 27th 06 03:54 AM
how do I convert a non exel tabulation to exel dte123 New Users to Excel 2 June 30th 06 02:31 AM
Search for datats in different Exel sheets Franz Muster Excel Discussion (Misc queries) 2 February 9th 06 05:22 PM
exel spread sheets big t Excel Worksheet Functions 3 April 21st 05 06:17 PM


All times are GMT +1. The time now is 04:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"