Solved

VBScript to delete rows in excel

Posted on 2004-04-27
5
230 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now