![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: sandy
Posts: 17
|
i am looking for a macro that will check the tab name's against a cell in a sheet i.e
if (tabname)=Range("A1") Then Do this Else Do this thank you for your time |
|
|
|
|
|
#2 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
In related sheet's module:
if (me.name)=Range("A1") Then 'Do this Else 'Do this End if Me.Name points to owner sheet, or you can use Sheet1.Name instead but Sheet1 is the object name in VBA which you can see in theproject explorer. regards |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|