p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Excel VBA > Excel VBA
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 6th, 2004, 04:01 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Burke, VA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Macro to copy data from one file to a 2nd file

I am new here but here is the gist of what I need help on.

I have 2 excel files. One will be the Master data holder. The second is the input file.

I want to write a macro that will run from the input excel file that will find the first empty row in the master available and then copy a set of lines from the "input" file into the "master" file.

The help I need is how to open and run using these 2 different files. I already can run the copy commands once I can link the two excel files. I am using the "ActiveSheet.Cells(NUM, 2).Value = Worksheets("IF").Cells(2, 4)" command to copy between sheets. I just need to know the next step of going to a new workbook.

Whatever help is available would be much appreciated.

Thanks,

Chad Podsednik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 29th, 2004, 11:40 AM
Authorized User
Points: 123, Level: 2
Points: 123, Level: 2 Points: 123, Level: 2 Points: 123, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: , , .
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to shattered Send a message via Yahoo to shattered
Default

It depends on how you want this to work but if all you want to do is open the file then

Workbooks.Open Filename:=xlPath

where xlPath is the path of the file (inc file name & ext)

if you have more sepcific questions I'd be happy to help



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS ignores a 2nd ext when loading a txt file mmusleh SQL Server 2000 5 July 24th, 2007 02:53 PM
Macro in .dot file produces error... ismith Word VBA 2 March 13th, 2007 10:23 AM
execute an excel macro via a .vbs file ismailc VB.NET 2002/2003 Basics 1 January 11th, 2007 04:19 PM
how to copy data from txt file kiwibey ASP Forms 2 November 23rd, 2004 02:11 PM
How to copy file? eapsokha Classic ASP Databases 2 November 14th, 2003 11:44 AM



All times are GMT -4. The time now is 12:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc