Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2006, 10:06 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to newbike
Default Multiple Inactive Files References


Hi there -
I am trying to make some code more efficient.

Currently, I have a workbook that is opened via MS Scheduler, and with an event it starts a macro that opens approxiately 7 report workbooks and updates those with approx 16 data files.

According to what I have read, it is much more efficient to leave as many files as possible inactive and just pull the data. However, I am at a loss as to the proper way to focus on the inactive workbooks as I need them.

I have Dim'd them all as:

'data files
Dim df_One as string
  Set df_One = Workbook(dataOne.xls)
'onward til all are named

'report files
Dim rpt_One as String
   Set rpt_One = Workbook (reportone.xls)
'and so on

Now lets say I want to work with data from df_five.range(c1:ba1009) copy it to rpt_six, then get data from df_two.range (a2:c1010) and copy it to rpt_six.

What is the most efficient way to accomplish this?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Inactive Workbook halem2 Beginning VB 6 0 June 8th, 2006 04:42 PM
Importing Multiple files in Multiple tables Versi Suomi Access 6 June 1st, 2005 08:47 AM
How Long Before We're Considered Inactive? Ben Horne Forum and Wrox.com Feedback 8 April 29th, 2004 10:55 AM
ads active/inactive rclancy BOOK: ASP.NET Website Programming Problem-Design-Solution 2 March 19th, 2004 06:38 PM
Device Controls Inactive brthede VS.NET 2002/2003 0 July 26th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.