LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default store active workbook

OK,
This must be something simple. That I just don't see.
If I want to store the active workbook in a property.
I am trying the following code. However I am getting an error on setting
the activeworkbook.

Anyone have any ideas?
thanks



Private m_objWorkspaceWorkbook As New Excel.Workbook

Public Property Set WorkspaceWorkbook(ByVal vData As Excel.Workbook)
Set m_objWorkspaceWorkbook = vData
End Property

Public Property Get WorkspaceWorkbook() As Excel.Workbook
Set WorkspaceWorkbook = m_objWorkspaceWorkbook
End Property


Sub xxx()
Dim objWB As Excel.Workbook
Set objWB = Excel.ActiveWorkbook
WorkspaceWorkbook objWB '??????????
End Sub


 
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
How to store a connection with parameters into a workbook Tom Edelbrok Excel Discussion (Misc queries) 0 November 9th 09 07:16 PM
Store Active Workbook [email protected] Excel Discussion (Misc queries) 0 March 28th 07 03:30 PM
store inventory sheet(ex:sports equipment store) vardan Excel Worksheet Functions 1 October 11th 06 12:51 AM
Store Information but not in a Workbook Andibevan[_2_] Excel Programming 2 March 30th 05 02:11 PM
Store text file in workbook? Don Wiss Excel Programming 6 September 29th 04 04:02 AM


All times are GMT +1. The time now is 10:13 AM.

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

About Us

"It's about Microsoft Excel"