Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Clearing references?


I run a piece of code which performs the following:

Wkbk1 contains a macro which opens wkbk2.
A macro located in wkbk2 is run from wkbk1.
wkbk2 macro runs a stored proc which returns data to wkbk2.sheet1
a querytable located in wkbk2.sheet2 is based on the data in
wkbk2.sheet1.

The following line of code (in wkbk2):
RANGE(\"QT_MFTP\").QUERYTABLE.REFRESH BACKGROUNDQUERY:=TRUE
creates an internal reference to wkbk2.

When I use - Workbooks(wkbk2).Close True
The vbaproject reference still remains in my editor and doesnt go until
I close and repoen the whole excel application.

Help appreciated.
Cheers,
Matt


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=384327

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
Clearing cells without clearing formulas marsjune68 Excel Discussion (Misc queries) 2 April 10th 09 07:39 PM
How to convert all 3d references to normal references in a workboo Dima Excel Discussion (Misc queries) 6 August 8th 08 12:38 PM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
How to rename references from range names to cell references Abbas Excel Discussion (Misc queries) 1 May 24th 06 06:18 PM
Clearing cells of numbers, but not cell references. Richard Buttrey[_5_] Excel Programming 1 August 5th 04 12:51 PM


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