Ed asks “I wish to match the name of a worksheet tab with the header of a form automatically. In other words, If I type the name of the form in a header (a cell), the worksheet tab would somehow be linked (or ref) to the header, and would change the name to match the header name.” This requires some code in the Worksheet module (Or in the workbook module, to work for all sheets). Try the following:
WORKBOOK MODULE
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) If Target.Address = "$A$1" Then Sh.Name = Target End Sub
By Juan Pablo Gonzalez on 22-May-2002
MrExcel.com Consulting can be hired to implement this concept, or many other cool applications, with your data.
MrExcel.com provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.
|