Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default ThisWorkbook/ActiveWorkbook

What is the difference in using:
ThisWorkbook.Path
-vs-
ActiveWorkbook.Path

Or any of the other Properties or Methods that can follow.


--
Regards,
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default ThisWorkbook/ActiveWorkbook

ThisWorkBook object refers to the workbook that the code is contained in


ActiveWorkBook object refers to the workbook that is currently on top
(Active) in Excel


They can return the same object, but if the workbook running the code is not
the active workbook then they will return different objects.

--
When you lose your mind, you free your life.


"John Keith" wrote:

What is the difference in using:
ThisWorkbook.Path
-vs-
ActiveWorkbook.Path

Or any of the other Properties or Methods that can follow.


--
Regards,
John

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ThisWorkbook/ActiveWorkbook


Thisworkbook is always the workbook within which the macro is stored.
Activeworkbook is any member of the Workbooks collection - activated by
Workbooks(xx).activate

:)


--
chubster264
------------------------------------------------------------------------
chubster264's Profile: http://www.excelforum.com/member.php...o&userid=30164
View this thread: http://www.excelforum.com/showthread...hreadid=510304

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
Help with ThisWorkbook David Excel Programming 5 May 27th 05 11:47 PM
Help with ThisWorkbook David Excel Programming 0 May 27th 05 09:54 PM
ActiveWorkBook Pete Excel Discussion (Misc queries) 3 May 9th 05 04:14 PM
ThisWorkbook vs. ActiveWorkbook? JK Excel Programming 5 April 19th 05 07:54 AM
ThisWorkbook Ron[_28_] Excel Programming 9 January 3rd 05 10:51 PM


All times are GMT +1. The time now is 12:42 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"