Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Extract Columns from Excel Files then Append to .CSV file


Extract Columns from Excel Files then Append to .CSV file

Reply
  #1 (permalink)  
Old 07-19-11, 12:56 AM
r0mmel r0mmel is offline
New Member
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Extract Columns from Excel Files then Append to .CSV file

Hi Everyone,

I hope this is not too much, but I badly need help on creating a VBScript for Excel that can:
1. Check if any excel file exists, if there are, open them one by one and do step 2 onwards; if none, do nothing.
2. Copy cells F8:Z8 of Sheet 1 all the way to the bottom where F8 is not null and Paste it to C1 to a new excel file.
3. Then copy the value from A2 and B2 then paste/reiterate it to A1 and B1 all the way to the bottom where F8 is not null of the new excel file.
4. Save the result to .csv.
5. Append all .csv results into one (there are multiple excel source files).

Here’s an illustration:

http://img855.imageshack.us/img855/8198/transform.jpg
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What script do I need for ths project? (Upload images script?) stevef22 PHP 2 10-30-09 05:25 PM
Match code in link with code with one in file and extract line peuplarchie PHP 3 10-24-09 01:23 AM
.csv files to php TGyll Script Requests 7 01-25-07 03:22 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
Use an EXCEL file to update a table in MSSQL busypanda ASP.NET 0 11-12-03 08:51 AM


All times are GMT -5. The time now is 01:19 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.