Solved

VBScript to delete rows in excel

Posted on 2004-04-27
5
240 Views
Last Modified: 2013-12-25
I need to delete the rows in an excel spreadsheet prior to being reloaded by a DTS transformation.
The needs to run as VB script as part of an activex transformation.
0
Comment
Question by:howertja
  • 2
5 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 10931719
What do you have so far?  Why not do this directly from Excel?

Leon
0
 

Author Comment

by:howertja
ID: 10932388
I am selecting records from a SQL database and placing the info in a spreadsheet to mail to a user. If I created a csv file, a new file would be created each time. With a transformation to excel, it appends the sheet. I need to delete the old data and load the new. Loading is not a problem. The transformation handles that. I would just create a csv file and email that but the user is not very knowledgable on how to load it to a spreadsheet.

By the way, this package will run as a scheduled batch process.
0
 
LVL 29

Accepted Solution

by:
leonstryker earned 125 total points
ID: 10932424
CSV is a format recognized natively in Excel.  In fact, if you have Excel installed on your machine and a CSV file is duoble clicked it will be opened in Excel.

Leon
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question