Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Referring to other workbooks

I have several (okay, about 500) different sheets to open, extract data, drop
it into another workbook, and close.

I've tried simply using references to the workbooks in the cells. Problem is

a) takes WAY too long to update and
b) those 500 files come out at about 31 per month - that is, in January,
there are 31 files, February, another 31 files.

I want to drop the data in each month to minimize the refresh time.

BUT, the sheets (the data entry sheets) are very complex and have
Workbook_Open and _Close and Sheet_Deactivate macros that I want to prevent
from firing when the data is downloaded. Mostly just so I can speed things up.

Any ideas?

Thanks all.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Referring to other workbooks

If you want to avoid running any events when you open another workbook, you can
disable them:

dim wkbk as workbook
application.enableevents = false
set wkbk = workbooks.open (filename:=xxxxx)
'do the copy/paste/move/consolidate
wkbk.close savechanges:=false
application.enableevents = true
'not sure when .enableevents = true should be turned on if you need it for
'anything your code does




jkitzy wrote:

I have several (okay, about 500) different sheets to open, extract data, drop
it into another workbook, and close.

I've tried simply using references to the workbooks in the cells. Problem is

a) takes WAY too long to update and
b) those 500 files come out at about 31 per month - that is, in January,
there are 31 files, February, another 31 files.

I want to drop the data in each month to minimize the refresh time.

BUT, the sheets (the data entry sheets) are very complex and have
Workbook_Open and _Close and Sheet_Deactivate macros that I want to prevent
from firing when the data is downloaded. Mostly just so I can speed things up.

Any ideas?

Thanks all.


--

Dave Peterson
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
Referring a cell Terry0928 via OfficeKB.com Excel Discussion (Misc queries) 3 May 21st 10 09:22 AM
Referring to a column Hru48 Excel Discussion (Misc queries) 1 January 31st 06 05:59 PM
referring to other worksheet Geetu M Excel Worksheet Functions 2 March 29th 05 09:37 PM
Referring to a column Helen Excel Programming 3 May 10th 04 02:40 PM
Problems with referring to workbooks Matt Lawson Excel Programming 1 February 21st 04 04:26 PM


All times are GMT +1. The time now is 02:16 PM.

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"