Dynamic Sheet Names Without VBA?

May 10, 2012

Can I have the name of a worksheet change based on a cell value, without a macro.

View 1 Replies


ADVERTISEMENT

Can Create Data Validation List Of Names Created In Name Box Or Sheet Tab Names

May 7, 2012

Can I create data validation list of the names created in the name box or of the sheet tab names?

View 5 Replies View Related

Excel 2010 :: VBA - Hide Sheets Using Code Names Not Sheet Names

Oct 15, 2013

Code:

Sheets(Array("Sheet 1", "Sheet 2")).Visible = False

How do I convert the above to using Sheet Codes Names, Sheet1 and Sheet2?

Want to ensure my code will work if the user changes the sheet name.

View 2 Replies View Related

Create Array Of File Names/sheet Names

May 1, 2008

Two part question:

1) I'm relatively new to arrays, but what I need to do is generate a list of file names and the sheets within each one. I would like to use an array for this, but since I don't have much experience.... well....that's why I'm here. Can someone point me in the right direction?

2) And the second part of this.... I was planning on using the FileSystemObject to determine the files in a selected folder and loop through that list of files, opening each one and harvesting the required info (file name and all sheet names). Should I use the FSO or is there something built into Excel that might be better (and also limit the number of dependencies for this little "project" of mine).

View 9 Replies View Related

List Sheet Names And Internal Names Within Workbook

Feb 25, 2011

Is it possible to produce a list on a new worksheet of all sheet names and their their internal names within a workbook?

If so I would like the tabbed name's to begin in say A2 with the corresponding internal name in B2.

View 3 Replies View Related

Dynamic Worksheet Tab Names

Jan 25, 2010

I have this logic that clears cells in all WS in WB.

The logic is using each sheet name to reference the logic to clear the contents.
Look:

Private Sub CommandButton1_Click()
ActiveSheet.Unprotect Password:=""
With Application
.ScreenUpdating = False
.EnableEvents = False
Response = MsgBox("This Action Will Prep For A New Week. Do you want to Continue?", vbYesNo)
If Response = vbNo Then
Exit Sub
End If

Range("H7") = Now()

Sheets(Array("Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "Monday", _
"Tuesday")).Select
Sheets("Wednesday").Activate
Range("B9:H25").Select

But I also want to change each sheet tab name to reflect a cell that has the date. But how to do this with the sheet reference in the logic? Couldit be dynamic?

View 9 Replies View Related

Dynamic List Of Worksheet Names

Apr 22, 2009

Is it possible to have a list in a summary sheet, containing the names of all other worksheets in the workbook, which will automatically update when a worksheet is added or deleted? I use Excel 2003.

View 9 Replies View Related

Dynamic Object Names In Userform

May 22, 2009

I have a userform with 10 rows of data with 8 colums in each row... I am trying to figure out how to dynamically address the object names (ie Textboxes).

Short and simply let's say I have 10 Text boxes named textbox1, textbox2, textbox3, etc

I want to address them in a loop as follows

Private Sub Clear_Fields()
Dim field As Object
For x = 1 To 10
field = "textbox" & LTrim(Str(x))
field.Value = "1"
Next x
End Sub
Obviously I'm missing something here as I get the error Object Variable or With Block Variable not set

View 9 Replies View Related

Dynamic Path Names For External Links

Jun 18, 2008

I am designing a spreadsheet for work.

each of the people i work with have their own workbook with their name as the title, John Smith.xls.

There are about 20 of us on the team with their own workbook with the same design.

We record information on these weekly and so there are 20 files in the folder for Week 1, 20 in Week 2 etc.

I want to make a master spreadsheet with will collect all of the information on these sheets and list them on a master spreadsheet every week.

So the external data i am linking to is found in a location like

='C:SpreadsheetsWeek26[John Smith.xls]Sheet1'!$A$1

Here is my problem,

I need the 'Week 26' and the 'John Smith' to be changeable and preferabilly linked to a cell using the INDIRECT formula so I can change all references to Week 26, 27, 28 etc and also change the workbook name it is referencing.

I have attempted to do this in the following way

I broke down the pathname to seperate cells

Cell 1: 'C:Spreadsheets
Cell 2: A reference linking to a cell containing value: Week 26
Cell 3: A reference linking to a cell containing value: [John Smith.xls]
Cell 4: Sheet1'!$A$1

I then used the CONCATENATE formula to link these into a single cell as a text string.

I then tried to use INDIRECT to link to the filemane in the CONCATENATE cell.

This did not work.

I need a way to make parts of the filename variable and linked to one cell.

I also need to do this while the other workbooks are closed.

I have found some information on INDIRECT.EXT which as far as I can make out involves installing mods to Excel to make these work, I cannot do this as the spreadsheet will be used across our network and will eventually be used by thousands of users.

View 11 Replies View Related

INDEX And MATCH Function Using Dynamic Worksheet Names

Apr 9, 2012

I have an excel workbook with a dynamic dependent drop down list setup, works a treat on the first worksheet i set it up on.

However here's the problem, my workbook contains a good handful of worksheets each named to reflect the certificate on the page, i need the drop down list to work on each tab. problem is when i setup the index/match function it requires a specific sheet name to make it work i.e.

=INDEX(Table1,0,MATCH(PI!$C20,Table1[#Headers],0))

However what i need it to do is reference the worksheet name, as new ones get added and names may change, something like

=INDEX(Table1,0,MATCH(&ActiveSheet.Name&$C20,Table1[#Headers],0))

However this doesn't work, i do have a cell on each page that holds the Sheet name using the function:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

But I cant even get it to use that cell as a reference in my formula.

View 9 Replies View Related

Dynamic Names Pointing To Blank-Delimited Blocks Of Data

Nov 10, 2012

I have a column of data that is blank-delimited into five blocks. The size of each block will vary, since the data comes from a web query. A blank (empty) cell tells me where a block ends and the next one begins.

I would like to set up five dynamic names (e.g. Block_1, Block_2 and so on), each of which will reference the corresponding segment of data.

What would be an elegant way of defining the dynamic names?

View 6 Replies View Related

Dynamic Hyperlink To File Names Found On Local Drive?

Mar 31, 2014

I want to list file names from a directory and sub directories and hyperlink them. I have been able to list the file names onto an excel sheet, but I cannot get it to hyperlink to the file.

'Force the explicit delcaration of variables
Option Explicit
Sub ListFiles()

[Code]....

View 1 Replies View Related

Hyperlink Names In Sheet 1 To Same Names In Sheet Two?

Mar 27, 2014

I would like to hyperlink the names in sheet 1 to the same names in sheet two. Is there a way I could do this using a formula rather that do each one by one?

View 3 Replies View Related

Copying Sheet Names And Cell Data Into New Overview Sheet

Mar 21, 2013

I have workbook that has several sheets within the workbook that are set up identical. Each of the sheets in the workbook are for a specific company.

As of right now I have been adding a sheet to the workbook that is an overview for what is in each sheet (the individual companies). Currently I am doing the formatting of the heading and column names manually and I pull the data from each sheet with a VLookup. I have been trying to enhance my VBA skills with coding something that will fill in the appropriate cells from worksheet to worksheet.

What I am trying to do is to populate an overview sheet with cells C24, C25, and B36 being static on each row per sheet. Then each row will be populated with cells C(36, 59, 70, 81), D(36, 59, 70, 81), F(36, 59, 70, 81), G, and H(36, 59, 70, 81). The overview sheet will have the diagram below in a ru

I attached an example : example.xlsx

Sheet 1
C25
C24
B36
D36
C36
F36
G36
H36
I36

[Code] .....

View 1 Replies View Related

Copying Dynamic Ranges From One Sheet To Another Sheet?

Jul 7, 2014

I have a separate sheet that I will drop a csv file into. On another sheet, I would like to copy that data. I know how to copy a cell and drag it to collect all the cells for the first go around, and this would work great if only my csv file had the same amount of rows each time, which it doesn't.

Is there anyway to create a macro to copy a dynamic range of rows from another sheet?

View 3 Replies View Related

Sheet Names - How Can I Get The Sheet To Name Itself From A Cell

Apr 13, 2006

I have an excel sheet which at the moment takes it name from a cell on that
sheet, but what I would like to reverse if possible. How can I get the sheet
to name itself from a cell. I'm sure I've been on a web page in the past
with this info on it, does anyone have the link?

View 14 Replies View Related

Summary Sheet Of Sheet Tab Names

May 14, 2008

I’ve had a look through the forum and on some of the guides/FAQ but thanks to my ineptitude I have been unable to adapt any of the examples to my specific situation.

What I’m after is this: I need to create a summary sheet for a work book with a variable number of tabs. All I need the summary sheet to do is to make a table of the name of the tab and then cell A17. How would I go about doing this and is it possible to save this macro to my machine/all workbooks instead of just the one?

View 6 Replies View Related

Look Up Sheet Names

Nov 12, 2009

In Column A row 4 of sheet1 I have an account name, for example Sonic, and I have a sheet named the account name, Sonic. In Column B row 4, of sheet1, I would like to return the value in Column B row 3 in sheet named Sonic, or the account named sheet.

I have about 50 different account names along Column A in sheet1, and the same account name sheets opened in the same workbook. Is there a good formula or vba code that will work for all the values in Column A of sheet1 to look for the same named sheet and return the values off of that? Note: on the account sheets in Column A it says ‘Account’ for all of them.. this wasn’t a mistype

View 4 Replies View Related

Change Sheet Names

Feb 22, 2010

I have got a workbook with about 200 sheets... Sheet1 > Sheet200

i need to delete about 100 sheets... sheet100 > sheet200

i then need to add the sheets back in but when i do the sheet numbers start from Sheet201... how do i get it to start from Sheet101 again or can i use some vba to change them later?

View 5 Replies View Related

Hyperlinks And Sheet Names

Feb 27, 2007

I wrote the following macro to create hyperlinked Table of contents on the first sheet of a workbook. It works great unless the sheet name has a space in it, i.e. "new sheet" as opposed to "newsheet". Any way to get it to work for either/ or?


Originally Posted by Code

Sub Hyperlink()
'
' Hyperlink Macro
' Macro recorded 2/26/2007 by bpillsbu
'

'
Dim ShName As String
Dim ShCt, N As Integer
Dim Sht As Worksheet

ShCt = ThisWorkbook.Worksheets.Count
Range("A5").Select
N = 1

View 14 Replies View Related

Getting Sheet Level Names - VBA

Jul 24, 2012

How can I obtain the sheet-level name through VBA? I'm not referring to the sheet (tab) name but the name as defined though Insert/Define or Insert/Create, etc .

I know the way to get the cell level name goes something like this:

MsgBox Sheet1.Range("A1").Name.Name

But i don't know the correct syntax for sheet level.

View 4 Replies View Related

Duplication Of Sheet Names

Jan 16, 2007

I made a macro that will name the current sheet whatever text is found in cell B2 on that sheet. This works great unless that sheet name already exists.

If the sheet name already exists, is there a way to rename it as Cell B2 plus the number 2 after the title so it doesn't cause an error?

Example:

"Smith, Bob" is a sheet name, so the macro would make the new sheet name "Smith, Bob 2"

Alternatively, how could I give a pop-up telling about the error and deleting the current sheet instead of renaming it with a "2"?

Eample:

"Sorry, 'Smith, Bob' already exists. Deleting new sheet." as a popup and have it delete the current sheet.

View 9 Replies View Related

Sheet Names And Hyperlinks

Aug 17, 2007

I have searched the forum and I have seem quite a few referrences to this question but can't find exactly what I'm looking for. I'm using the first sheet in the worksbook as a splash screen which has lots of button macros on there. I want to add one more which will make a list on this sheet from cell b25 down with all the sheet names in the workbook which are also clickable hyperlinks. Does anyone have any idea how to do this, so far I can make a list of the names..

Sub Index()
Dim ws As Worksheet
Dim I As Long

I = 25
For Each ws In Worksheets
If ws.Name "Actions" And ws.Name "summary" And ws.Name "Archive" Then
Worksheets("Summary").Range("B" & I) = ws.Name
I = I + 1
End If
Next ws

End Sub

But have no idea how to make these names clickable which will make the relevant sheet active. If it helps the sheet name is also in cell A2 of every sheet.

View 9 Replies View Related

Formula Containing Sheet Names

Feb 1, 2008

I have done a formula for Abbott as shown below however I actually have about 50 sheets with names. I have the names listed in column A. Is there a formula that instead of typing Abbott as shown I can use the cell in column A to generate a code ?

View 9 Replies View Related

Variable Sheet Names In VBA

Feb 26, 2008

Running Windows CP; Excel 2003

The Board looks full of some interesting issues today.

I'm working on a workbook that hides and unhides a lot of columns depending on the month the user has selected. No problems here.

The sheets are named regionally, ie National 2008, California 2008 etc. The user is able to select the month and the year from separate combo boxes.

So when 2009 comes around I will need to rewrite many lines of code to point the VBA to the new worksheet names like National 2009, California 2009. My question is, is there a way to reference either variable worksheet names in the VBA or some other manner in which to write the code so I don't need to rewrite every year change?

I currently reference the sheets something like Sheets ("National 2008").Range("H:H").EntireColumn.Hidden=True

View 9 Replies View Related

Extract All Sheet Names

May 29, 2008

I have a workbook with 40 or so worksheet tabs in it. How do I extract the names of these different tabs into, lets say Column A??

View 9 Replies View Related

Is Is Possible To Control Sheet Tab Names

Feb 20, 2009

I have a spreadsheet with sheet numbers that are controlled by the tab name. Is it possible to limit how people name the tab? For example, my sheet numbering must be: 101, 102, etc. Thus the tab would of course be 101, 102, etc.

View 9 Replies View Related

Sheet Names With Spaces In VBA

Mar 4, 2009

I have been using the code below for a form. But now I need to change the sheet name to have spaces. But when I do. I comes up with the Run Time 1004 error on the “Ctrl.Text = Range(Ctrl.Tag).Text '*** “ line.

Why is it that this line is not allowing me to have spaces?

Private Sub Load_Controls()
Dim Ctrl As Control
For Each Ctrl In UserForm1.Controls
If Ctrl.Tag "" Then
Ctrl.Text = Range(Ctrl.Tag).Text '***
End If
Next Ctrl
End Sub

View 9 Replies View Related

Sheet Names Add Conditionally

May 13, 2009

I want to add to it so that if the "Name" entered into the target cell is longer then the maximum allowd length it inserts an abreviation of the words (and increments where nessisary)

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error GoTo StandardName
If Target.Address = "$B$4" Then Sh.Name = Target
Exit Sub
StandardName:
Sh.Name = "Sheet1"
End Sub

View 9 Replies View Related

Protect Sheet/tab Names

Sep 24, 2006

Just wondering if there is a way to prevent users from changing tab/ sheet names in a workbook? Either via sheet protection (I couldn't find any option) or using code.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved