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: 125
Default Name of Work Sheet to be placed in any cell

hi,

I am using a Code to generate a new Sheet:

Sub SchedSheets()

If MsgBox("Are you sure that you want to Create the List of Sheets
Mentioned in the Column A?", vbYesNo, "Are you sure?") = vbNo Then
Exit Sub
End If
Dim LastCell As Range, Rng As Range, cell As Range
Dim ws As Worksheet

Set ws = ActiveSheet
Set LastCell = ws.Cells(Rows.Count, "A").End(xlUp)
Set Rng = ws.Range("A1", LastCell)
For Each cell In Rng
If Not IsEmpty(cell) Then
Sheets("1").Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = cell.Value
Columns("A:A").Select
Selection.EntireColumn.Hidden = True
End If
Next
End Sub

When ever i enter any Name in Cell A1 (Suppose "Akash") and run the
macro it helps me by creating a new sheet with the name as Akash.

Now is this possible to reflect the Name of Work Sheet in any cell of
the Worksheet Named as "Akash".

Awaiting for your mail.

thanks

Akash

 
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
IF A CELL ON ONE WORK SHEET MATCHES ANOTHER WORKSHEET conditional format if cell contains word[_2_] Excel Discussion (Misc queries) 7 May 29th 09 12:40 PM
transfer data cell from another work sheet MDAM Excel Worksheet Functions 2 November 13th 08 04:12 AM
extracting totals from 1 work sheet to another work work sheet cj Excel Discussion (Misc queries) 2 October 27th 07 10:54 PM
vb code for renaming a work sheet with a cell reference John Britto Excel Discussion (Misc queries) 3 September 17th 06 07:12 PM
Populating work sheet combox with another work sheet values sjayar Excel Discussion (Misc queries) 1 October 29th 05 03:22 PM


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