How Two Change Both Sheet Name & (Name)
Apr 20, 2008
I am copying sheets using sheet().copy and when I do so I want to change both names of the sheet, "sheet10 (name)". At the momemnt I know only how to rename (name).
I.e. both "Name" and "(Name)" in each sheets propertes.
View 9 Replies
ADVERTISEMENT
Jul 21, 2009
Im trying to use an event change to change the sheet name based on a cell value, but my issue is how can I error trap if the sheet name is a duplicate? Here is what I have so far
Sub ChangeName()
On Error GoTo errhandler
Sheets(1).Name = Sheets(1).range("d10")
Exit Sub
errhandler:
MsgBox "sheet name is already exists"
End Sub
View 9 Replies
View Related
May 25, 2014
First off I have an excel sheet that I have split into two windows. excel sheet.jpg
I am looking for a formula that will change the bottom sheet number a color if it exists on the top sheet.
View 8 Replies
View Related
Jul 31, 2009
I have a bit of code in sheet two of my document that requires user input to produce output. However I have the document set up in a vway that requires the actual input to be placed in a vell in sheet one, and the cell in sheet two is just "=cell in sheet one". This causes the input cell in sheet two to change but the output cell does not produce the new answer.
View 4 Replies
View Related
Jan 15, 2007
Sub OptionButton222_Click()
With Worksheets("Beam Input")
.Shapes("Notch 1").Visible = False
.Shapes("Notch 2").Visible = False
End With
End Sub
Sub OptionButton223_Click()
With Worksheets("Beam Input")
.Shapes("Notch 1").Visible = False
.Shapes("Notch 2").Visible = True
End With
End Sub
Sub OptionButton224_Click()
With Worksheets("Beam Input")
.Shapes("Notch 1").Visible = True
.Shapes("Notch 2").Visible = False
End With
End Sub
i need to modify it so that a selection on the beam input page causes the images to change on the beam output page. Currently this code is in the module section of VBA.
View 2 Replies
View Related
Jul 19, 2012
How do i change the below code to not reference a named sheet but the active sheet.
In case you need it i'm trying to sort columns A:CQ on row 2 smallest to largest from left to right.
Code:
Sub Sort_Left_Right()
' Sort_Left_Right Macro
Columns("A:CQ").Select
ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Add Key:=Range("A2:CQ2") _
, SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
[Code ..........
View 3 Replies
View Related
Oct 3, 2009
I am trying to update my sheet name based on a reference to cell a27 in the worksheet. Only thing is I don't want it to affect all tabs, just those in between my bookends aptly named first and last. I have tried working this on my own, stringing bits of already existing macros in my book, but as I am a novice (that's being generous) it is clearly not working. Can someone take a look below and advise where I am going wrong?
View 8 Replies
View Related
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
Sep 19, 2008
The routes are listed in column C, and other customer information is in columns A, B, and D to I. I have several workbooks, and in each workbook I need to have a different sheet for each Route. Right now, all the information is on one sheet. Is there a Macro or some VBA I can use that will make one sheet for each route? And move all the information with it?
View 5 Replies
View Related
Nov 13, 2008
I am getting US formatted dates with this procedure, I require UK dates, but I don't understand why its giving me US format
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If UCase(Sh.Name) "ALL BILLS" Then Exit Sub
With Target
If .Row > 5 And .Column = 19 Then
If Cells(.Row, "B") = "" Then
Else
Application.EnableEvents = False
Cells(.Row, "S") = "CLOSED"
Cells(.Row, "E") = Format(Date, "DD/MM/YYYY")
Application.EnableEvents = True
Range("E:E").EntireColumn.AutoFit
Range("S:S").EntireColumn.AutoFit
End If
End If
End With
End Sub
View 9 Replies
View Related
Aug 3, 2006
I need a formula that will update A1 to what ever the sheet name is. Is that possible? It sounds so simple but I can't seem to find anything so far.
View 5 Replies
View Related
Feb 2, 2007
I have two macros, both written in "Module 1". I would like these both to run on the sheet named "profile" whenever any one or more cells in the sheet named "data" change in value. I have looked at the relevant FAQ's but unfortunately just don't have the experience with vba.
View 5 Replies
View Related
Jun 29, 2007
I have set up 2 sheets with one called "2007" and the other called "Updt" What I would like to do is when I change the value in "2007" Tab to say "2008" or "2009" etc. it would update corresponding cells in the "Updt" Sheet i.e. Cells B2, B3, B4, B5, B6, B7 and B8.
View 6 Replies
View Related
Sep 13, 2007
I have a macro which makes an renames a new sheet for me using a button, how can I copy macros currently found in only one sheet to this new sheet? Mainly used in formating and formula display.
View 5 Replies
View Related
May 17, 2008
Automatically Change Sheet Tab Name With Cell is listed below for convenience
$A$2 contains a formula...the code doesnt work on a formula. if i overwrite the formula, THEN the code works and the sheet tab is named to whatever i type in the cell
but how do i make it work with a formula? ...
View 9 Replies
View Related
Apr 8, 2014
If the user enters a numeric value in Range ("B" & Rows.Count).End(xlUp).Offset(1), I need the code to copy the formulas in Range ("A12,C12:V12") to Offset row If there is no user entry in Range ("B" & Rows.Count).End(xlUp).Offset(1) then nothing should happen.
This should be monitored in sheet at all times.
I`ve done som research and think the code must be entered as a Private Sub Worksheet_SelectionChange(ByVal Target As Range) sub?
View 13 Replies
View Related
May 19, 2014
In need of a macro to change the look of the attached example spreadsheet.
View 3 Replies
View Related
Jan 29, 2014
So I have a sheet that has 9 columns A - I sheet is called "Door Switch Times"
Basicall when column F gets data in it I need then a macro to automatically Copy B, C, D to a
new sheet called "Main". I need B to be copied to C on Main, "C" on Door Switch Timse to be copied to "D" on main and "D" on Door Switch Times to be copied to "E" on Main. I cant post the sheet as my work computer will not allow me to transfer or share files.
View 7 Replies
View Related
Oct 23, 2009
1Does Excel process worksheets (tabs) in the left-to-right order in which the tabs appear visually? Or in the order of the worksheets' index numbers as they appear in the VBE Project Explorer window? 2Is there a way to renumber or reassign index numbers to specific worksheets?
View 4 Replies
View Related
Nov 5, 2009
I have a sheet in Excel (sheet 1)which reads in eleven values. If the data in the 11th value changes then I would like to copy the other 10 values to sheet 2 appending to previous values copied. Date and time on each copy would also be nice if possible.
The values in sheet 1 are being read in via an OPC server from a machine and only change at the and of a batch which could take a few hours.
We are trying to gather this information as a test just for stocking levels on a short term basis. We may look at a more sophisticated method after our trial period is completed.
View 9 Replies
View Related
Dec 5, 2011
I have a work book. The sheets are for different months. I also have a summary pages that calculates and number of things. How I get the summary page to look at a different work sheet without changing to many things.
OctAlice KwokCandy LeeStudents Served %77%
(=Oct!C2)0% (=Oct!D2)PM Satisfaction3.66 (=Oct!C3)2.67 (=Oct!D3)14 Day KPI85%85%
Current the formula points direcrt the the worksheet =Oct!C2
I would like to be able to change a cell that matched worksheet names and the summary automatically looks at that work sheet.
View 3 Replies
View Related
Oct 1, 2013
I am working on a Workbook for my wife to use at school. It's basically a grade-book that automatically fills out the report card for each kid. In column A I have a list of each student's name. I also have those hyper-linked to each sheet for easy access.
I would like to be able to change the names in column A on Sheet 1 and it also change the names on the corresponding sheet it is hyper-linked to. I have seem some similar post but I can't seem to get any of those formulas to work. I get an invalid sheet name error. Maybe I'm not inserting the code properly or it has something to do with my hyperlinks. This is driving me crazy not being able to figure this out. I just want to make it as simple and easy for her to use year to year.
View 6 Replies
View Related
Nov 2, 2013
I use the following formula =Original!$F2 to link from another sheet. How can I change the formatting of the text in the new sheet.
View 2 Replies
View Related
Jan 6, 2014
When I select a specific sheet I would like cell A1 to be selected using VBA.
View 2 Replies
View Related
Dec 18, 2008
CopyPaste operations leaves the goal range selected and I don't want that. The .Activate and .Select methods seem to require that the cell to be selected refers to the ActiveSheet.
What I'm doing now to change the active-cell is kind of:
1. Disable ScreenUpdating
2. Save a reference to ActiveCell
3. Activate the relevant goal-worksheet
4. Change the ActiveCell to the upper-left-cell of the Selection
5. Come back by the reference in point number 2
6. Enable ScreenUpdating.
It works, but seems to me as a huge job for something as simple than "collapsing" a multi-cell-selection. Another irritating problem is the slight screen-shaking caused by the disabling/enabling ScreenUpdating.
View 9 Replies
View Related
Jun 6, 2006
I've got a userform for entering data in a workbook with sheets for each month. ie: Jan'06 , Feb'06, etc. I've added a combobox that looks at my list of these sheets and when a certain month is chosen I would like that months sheet to come up behind the userform, so that the data is entered there when the form is completed.
The other option is to not change the sheet focus but to direct the data to the appropriate sheet based on the combo box. (No matter what sheet is currently selected)
On a related note, I have a text box showing the last date entered and I would like to make shure that it is updated based on the sheet selected in the combobox.
View 9 Replies
View Related
Jan 2, 2007
Suppose I have 100 worksheets in a workbook ( named 1,2 3 ........100) in a collecteve sheet ( I have a coulmn of 100 same formulas refering to the same cell in all the 100 worksheets)
for example :
'1'!$a$1
'2'!$a$1
if I drag the first formula Fill Down With Fill Handle then, the sheet name will be the same all the way down(1) , which is not correct , so I have to go bach and modify them manually , which is very boring and mistakes could easily happen
View 3 Replies
View Related
Feb 18, 2008
I have workbook with two sheets "Path A" and "Path B". Whenever I activate worksheet "Path B", I want to activate the cell in "Path B " which was the active cell in sheet "path A". For example, if cell R1 was active in path A when Path B was activated, R1 should be made the activecell of Path B. Tried the follwing code... not working.
Private Sub Worksheet_Activate()
Dim r As Integer, c As Integer
r = Worksheets("Path A").ActiveCell.Row
c = Worksheets("Path A").ActiveCell.Column
Worksheets("PathB").Cells(r, c).Activate
End Sub
View 9 Replies
View Related
Apr 30, 2014
VB:
Sub RenameTabs()
For i = 1 To Sheets.Count
If Worksheets(i).Range("C1").Value <> "" Then
Sheets(i).Name = Worksheets(i).Range("C1").Value
End If
Next
End Sub
I change my tab names with the above but than my hyperlinks breaks.
View 4 Replies
View Related
Jan 28, 2007
Is it possible to change and entire sheet to Upper case using the 'Upper' function?
We are need to change all the text to caps but can only seem to apply the function to one cell at a time and then copy it down for the column. This is going to be a fairly labour intensive process as we have many columns.
View 12 Replies
View Related