Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

delete data from excel without openning it

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nader - 28 Nov 2007 18:04 GMT
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!
sebastienm - 28 Nov 2007 19:02 GMT
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>

Signature

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

> Hello,
>
[quoted text clipped - 6 lines]
>
> Cheers!
Nader - 29 Nov 2007 13:52 GMT
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!

> Hi,
> If your worksheet is orgaized as a table (database), you should be able to
[quoted text clipped - 18 lines]
>>
>> Cheers!
sebastienm - 29 Nov 2007 17:14 GMT
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.
Signature

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

> Hello Sébastien,
>
[quoted text clipped - 26 lines]
> >>
> >> Cheers!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.