Opening files,copy data, and close file

trinidad2011

New Member
Joined
May 8, 2011
Messages
13
VBA RELATED POST

Hi!

I am struggling with macro writing. I am new, and i would be delighted to get a response.
I have about 3 GB worth of files to open, select some data from it, copy into a new worksheet1, open the next file, copy data from it, paste into the worksheet1 and so on. i need to do this with all files.

Each file has 5 columns. one with date, time, latitude, longitude and amplitude.
I need to conditionally select data from the latitude and longitude columns and paste them along with their corresponding date, and time into a new workbook, with a new file name.

The files each have a total of 32001 rows, including the title rows.

The conditions that i need are the latitude values should be within -37.9382 and -32.004 and the longitude values should be within 136.7754 and 141.0698. all rows which do not satisfy this should be deleted.

i am completely new to macro excel writing and i am completely stuck.
I have attached the excel file that i am trying to work with.

Extremely looking forward to your reply,
Trinidad2011
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
ok so a little clarification

select some data from it, copy into a new worksheet1, open the next file, copy data from it, paste into the worksheet1
does every file get a new file to copy into or does every file get copied into the new file in a different sheet?

all rows which do not satisfy this should be deleted.
then this part I'm not sure do you want to delete data in the existing files or in the data you copied?
 
Upvote 0
Hi!
i appreciate your reply.
I somehow posted the same question in another section of this forum, and my question has been answered.
here is the link for anyone who was looking for an answer to a similar problem.

HTML:
http://www.mrexcel.com/forum/showthread.php?p=2709999&posted=1#post2709999

this forum is so useful, i am grateful for having run into it :)
thank you for all of the tutors who kindly give the public some help!
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top