PC Review


Reply
Thread Tools Rate Thread

delete data from excel without openning it

 
 
Nader
Guest
Posts: n/a
 
      28th Nov 2007
Hello,

I've got a huge file from which i'd like to delete to some rows but I DO NOT
WANT TO OPEN IT in order to avoid having to wait a long time. So, is it
possible to delete some data (using vba) from an excel file without openning
that file?

Thanks in advance.

Cheers!


 
Reply With Quote
 
 
 
 
sebastienm
Guest
Posts: n/a
 
      28th Nov 2007
Hi,
If your worksheet is orgaized as a table (database), you should be able to
by using ADO. However the excel driver is a bit buggy, so you have to be
carefull.
Look at the following msdn articles and the articles they are referencing at
the bottom.
-<http://support.microsoft.com/kb/257819>
-<http://support.microsoft.com/kb/278973>

--
Regards,
Sébastien
<http://www.ondemandanalysis.com>


"Nader" wrote:

> Hello,
>
> I've got a huge file from which i'd like to delete to some rows but I DO NOT
> WANT TO OPEN IT in order to avoid having to wait a long time. So, is it
> possible to delete some data (using vba) from an excel file without openning
> that file?
>
> Thanks in advance.
>
> Cheers!
>
>
>

 
Reply With Quote
 
Nader
Guest
Posts: n/a
 
      29th Nov 2007
Hello Sébastien,

Thanks for the articles but unfortunately it seems that I can only delete
values and not formulas.
Also, I cannot delete an entire row.

Cheers!

"sebastienm" <(E-Mail Removed)> a écrit dans le message
de news: 476590DE-B6C6-4D22-BF05-(E-Mail Removed)...
> Hi,
> If your worksheet is orgaized as a table (database), you should be able to
> by using ADO. However the excel driver is a bit buggy, so you have to be
> carefull.
> Look at the following msdn articles and the articles they are referencing
> at
> the bottom.
> -<http://support.microsoft.com/kb/257819>
> -<http://support.microsoft.com/kb/278973>
>
> --
> Regards,
> Sébastien
> <http://www.ondemandanalysis.com>
>
>
> "Nader" wrote:
>
>> Hello,
>>
>> I've got a huge file from which i'd like to delete to some rows but I DO
>> NOT
>> WANT TO OPEN IT in order to avoid having to wait a long time. So, is it
>> possible to delete some data (using vba) from an excel file without
>> openning
>> that file?
>>
>> Thanks in advance.
>>
>> Cheers!
>>
>>
>>

>



 
Reply With Quote
 
sebastienm
Guest
Posts: n/a
 
      29th Nov 2007
Yes, it is pretty limited and only applies to db-table-like sheets.
As far as I know, that's the only access you have to a CLOSE workbook.
Maybe there are ways with xl2007 and its OpenFormat xml format, but that
would be for 2007 only.
Sorry, I have no other idea.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com>


"Nader" wrote:

> Hello Sébastien,
>
> Thanks for the articles but unfortunately it seems that I can only delete
> values and not formulas.
> Also, I cannot delete an entire row.
>
> Cheers!
>
> "sebastienm" <(E-Mail Removed)> a écrit dans le message
> de news: 476590DE-B6C6-4D22-BF05-(E-Mail Removed)...
> > Hi,
> > If your worksheet is orgaized as a table (database), you should be able to
> > by using ADO. However the excel driver is a bit buggy, so you have to be
> > carefull.
> > Look at the following msdn articles and the articles they are referencing
> > at
> > the bottom.
> > -<http://support.microsoft.com/kb/257819>
> > -<http://support.microsoft.com/kb/278973>
> >
> > --
> > Regards,
> > Sébastien
> > <http://www.ondemandanalysis.com>
> >
> >
> > "Nader" wrote:
> >
> >> Hello,
> >>
> >> I've got a huge file from which i'd like to delete to some rows but I DO
> >> NOT
> >> WANT TO OPEN IT in order to avoid having to wait a long time. So, is it
> >> possible to delete some data (using vba) from an excel file without
> >> openning
> >> that file?
> >>
> >> Thanks in advance.
> >>
> >> Cheers!
> >>
> >>
> >>

> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: import data without openning excel workbook =?Utf-8?B?QmFoYQ==?= Microsoft Excel Programming 6 7th Dec 2006 05:26 AM
RE: openning Access via Excel =?Utf-8?B?SHVhcWlu?= Microsoft Excel Programming 0 13th Sep 2005 05:41 PM
Delete data in a linked Excel sheet using Access code or seql delete Rocky Microsoft Access External Data 9 26th Jun 2005 12:42 AM
I want to delete parameter when openning in forms view =?Utf-8?B?Sm9zaGk=?= Microsoft Access Queries 1 15th Oct 2004 08:51 PM
excel asp.net problem - openning excel file in webserver r_mu Microsoft Excel Misc 0 6th Jul 2004 05:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.