Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook with several sheets for different types of client. I need
to capture the client type from the sheet name but how to do this with VBA is a mystery. Any support gratefuly received. Many Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Public Sub ws_name()
Dim s As String s = ActiveSheet.Name MsgBox s End Sub On Apr 4, 3:03 pm, Jimbob wrote: I have a workbook with several sheets for different types of client. I need to capture the client type from the sheet name but how to do this with VBA is a mystery. Any support gratefuly received. Many Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jason and Jim
You guys are amazing - and so quick Thank you "Jason Lepack" wrote: Public Sub ws_name() Dim s As String s = ActiveSheet.Name MsgBox s End Sub On Apr 4, 3:03 pm, Jimbob wrote: I have a workbook with several sheets for different types of client. I need to capture the client type from the sheet name but how to do this with VBA is a mystery. Any support gratefuly received. Many Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this...
sub test() msgbox activesheet.name end sub -- HTH... Jim Thomlinson "Jimbob" wrote: I have a workbook with several sheets for different types of client. I need to capture the client type from the sheet name but how to do this with VBA is a mystery. Any support gratefuly received. Many Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
capturing current range of cells | Excel Programming | |||
Capturing current folder path | Excel Programming | |||
Capturing Decimal Values in Variable - Losing decimals when summin | Excel Programming | |||
Help : Macro for capturing current system time | Excel Programming | |||
On Error, Capturing current module and actual line of code | Excel Programming |