Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a workbook with several worksheets and want each tab to reflect what
is in Textbox1 and Textbox2 of the respective worksheet. Textbox1 contains surnames and Textbox2 contains first name. -- AOU |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Double click on the tab and name it as you wish. Or, right click on the tab
and click rename. Hope this helps. "AOU" wrote: I have a workbook with several worksheets and want each tab to reflect what is in Textbox1 and Textbox2 of the respective worksheet. Textbox1 contains surnames and Textbox2 contains first name. -- AOU |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for the reply. But I was after the sheet Tab displaying the contents
of two textboxes. I that possible -- AOU "Laus" wrote: Double click on the tab and name it as you wish. Or, right click on the tab and click rename. Hope this helps. "AOU" wrote: I have a workbook with several worksheets and want each tab to reflect what is in Textbox1 and Textbox2 of the respective worksheet. Textbox1 contains surnames and Textbox2 contains first name. -- AOU |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try code like
Private Sub TextBox1_LostFocus() On Error Resume Next ThisWorkbook.Worksheets(1).Name = Me.TextBox1.Text End Sub Private Sub TextBox2_LostFocus() On Error Resume Next ThisWorkbook.Worksheets(2).Name = Me.TextBox2.Text End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "AOU" wrote in message ... I have a workbook with several worksheets and want each tab to reflect what is in Textbox1 and Textbox2 of the respective worksheet. Textbox1 contains surnames and Textbox2 contains first name. -- AOU |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I interpret OP to Want Text box Names combined;
So (using your code) Private Sub TextBox1_LostFocus() On Error Resume Next ActiveSheet.Name = Me.TextBox1.Text & Me.TextBox2.Text End Sub Private Sub TextBox2_LostFocus() On Error Resume Next ActiveSheet.Name = Me.TextBox1.Text & Me.TextBox2.Text End Sub "Chip Pearson" wrote in message : Try code like Private Sub TextBox1_LostFocus() On Error Resume Next ThisWorkbook.Worksheets(1).Name = Me.TextBox1.Text End Sub Private Sub TextBox2_LostFocus() On Error Resume Next ThisWorkbook.Worksheets(2).Name = Me.TextBox2.Text End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "AOU" wrote in message ... I have a workbook with several worksheets and want each tab to reflect what is in Textbox1 and Textbox2 of the respective worksheet. Textbox1 contains surnames and Textbox2 contains first name. -- AOU |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you all, very helpfull.
-- AOU "JMay" wrote: I interpret OP to Want Text box Names combined; So (using your code) Private Sub TextBox1_LostFocus() On Error Resume Next ActiveSheet.Name = Me.TextBox1.Text & Me.TextBox2.Text End Sub Private Sub TextBox2_LostFocus() On Error Resume Next ActiveSheet.Name = Me.TextBox1.Text & Me.TextBox2.Text End Sub "Chip Pearson" wrote in message : Try code like Private Sub TextBox1_LostFocus() On Error Resume Next ThisWorkbook.Worksheets(1).Name = Me.TextBox1.Text End Sub Private Sub TextBox2_LostFocus() On Error Resume Next ThisWorkbook.Worksheets(2).Name = Me.TextBox2.Text End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "AOU" wrote in message ... I have a workbook with several worksheets and want each tab to reflect what is in Textbox1 and Textbox2 of the respective worksheet. Textbox1 contains surnames and Textbox2 contains first name. -- AOU |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Lookup Data in two seperate Spreadsheets | Excel Worksheet Functions | |||
Circular reference toolbar not working | Excel Discussion (Misc queries) | |||
Absolute Worksheet reference number | Excel Discussion (Misc queries) |