Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Workbook Name as Variable

I need to get the name of the active workbook assigned to a variable in the
Macro that I am trying to write. Is this possible?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Workbook Name as Variable

Dim wbname as String

wbname = ActiveWorkbook.Name

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Workbook Name as Variable

Sub Workbookname()
Dim strActivebook As String

strActivebook = ActiveWorkbook.Name

End Sub

--
HTH...

Jim Thomlinson


"Herd" wrote:

I need to get the name of the active workbook assigned to a variable in the
Macro that I am trying to write. Is this possible?

Thanks,

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Workbook Name as Variable



"Mark Lincoln" wrote:

Dim wbname as String

wbname = ActiveWorkbook.Name

Thank You for the fast reponse. It was very helpful

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Workbook Name as Variable



"Jim Thomlinson" wrote:

Sub Workbookname()
Dim strActivebook As String

strActivebook = ActiveWorkbook.Name

End Sub
Thank You for the fast response. It was very helpful.
--
HTH...

Jim Thomlinson


"Herd" wrote:

I need to get the name of the active workbook assigned to a variable in the
Macro that I am trying to write. Is this possible?

Thanks,

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a workbook variable be set by clicking the workbook? Kobayashi[_47_] Excel Programming 0 October 29th 04 10:23 AM
Can a workbook variable be set by clicking the workbook? Kobayashi[_44_] Excel Programming 2 October 28th 04 10:15 PM
Can a workbook variable be set by clicking the workbook? Kobayashi[_46_] Excel Programming 0 October 28th 04 08:55 PM
Can a workbook variable be set by clicking the workbook? Kobayashi[_45_] Excel Programming 1 October 28th 04 08:11 PM
Can a workbook variable be set by clicking the workbook? Kobayashi[_43_] Excel Programming 2 October 28th 04 06:20 PM


All times are GMT +1. The time now is 07:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"