PC Review


Reply
Thread Tools Rate Thread

Excel Export

 
 
Pwyd
Guest
Posts: n/a
 
      9th Jul 2008
I was getting help from Ken Snell about exporting to excel, however, when i
tried to do it to a specific range, using the link he gave me, it wouldn't
work. In fact, the help files clearly state the following:

Note When you export to a spreadsheet, you must leave this argument blank.
If you enter a range, the export will fail.


How then does one find the next "blank" spot on a spreadsheet to export data
that isn't simply updated in the same spot every day, but is a log of whats
gone on over time.


 
Reply With Quote
 
 
 
 
Klatuu
Guest
Posts: n/a
 
      9th Jul 2008
That information in VBA Help is partially incorrect. You can specify a sheet
name, but not a range within a sheet.

Also, since about 2005, you can no longer append data to or update data in a
linked Excel spreadsheet. So, there are two ways you can accomplish this.

One would be to import the data into an Access table, append the new rows to
the Access table, then export the table back to Excel.

The other would be to use Automation to open the workbook and use the
CopyFromRecordset method to append the data, save the workbook, and quit the
instance of Excel.
--
Dave Hargis, Microsoft Access MVP


"Pwyd" wrote:

> I was getting help from Ken Snell about exporting to excel, however, when i
> tried to do it to a specific range, using the link he gave me, it wouldn't
> work. In fact, the help files clearly state the following:
>
> Note When you export to a spreadsheet, you must leave this argument blank.
> If you enter a range, the export will fail.
>
>
> How then does one find the next "blank" spot on a spreadsheet to export data
> that isn't simply updated in the same spot every day, but is a log of whats
> gone on over time.
>
>

 
Reply With Quote
 
Pwyd
Guest
Posts: n/a
 
      9th Jul 2008
Ah, yes, of course. Import the data from the spreadsheet into a table, make
changes, over-write the old one. That seems like a better choice than using
a second application to do something i can do with just the one.

Thanks Klatuu.


"Klatuu" wrote:

> That information in VBA Help is partially incorrect. You can specify a sheet
> name, but not a range within a sheet.
>
> Also, since about 2005, you can no longer append data to or update data in a
> linked Excel spreadsheet. So, there are two ways you can accomplish this.
>
> One would be to import the data into an Access table, append the new rows to
> the Access table, then export the table back to Excel.
>
> The other would be to use Automation to open the workbook and use the
> CopyFromRecordset method to append the data, save the workbook, and quit the
> instance of Excel.
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "Pwyd" wrote:
>
> > I was getting help from Ken Snell about exporting to excel, however, when i
> > tried to do it to a specific range, using the link he gave me, it wouldn't
> > work. In fact, the help files clearly state the following:
> >
> > Note When you export to a spreadsheet, you must leave this argument blank.
> > If you enter a range, the export will fail.
> >
> >
> > How then does one find the next "blank" spot on a spreadsheet to export data
> > that isn't simply updated in the same spot every day, but is a log of whats
> > gone on over time.
> >
> >

 
Reply With Quote
 
Pwyd
Guest
Posts: n/a
 
      9th Jul 2008
Klatuu i'm having one issue: when i try to export the excel spreadsheet back
to its place after modifying the data, i've tried using both
transferspreadsheet and the standard "export" command.

the Export command relies on the user to know what and where they are
putting, and what to name it. the Transferspreadsheet command on the other
hand isn't as malleable as i'd like, and with either one, it complains when
the spreadsheet already exists (i'm trying to make a destructive process, to
overrwrite the one that is already present, but it does not like this idea)

I don't really mind too much which one i have to use, though i'd prefer
"export" as its much easier to move the app. to another computer and not have
to change the command for each one.


Suggestions?




"Klatuu" wrote:

> That information in VBA Help is partially incorrect. You can specify a sheet
> name, but not a range within a sheet.
>
> Also, since about 2005, you can no longer append data to or update data in a
> linked Excel spreadsheet. So, there are two ways you can accomplish this.
>
> One would be to import the data into an Access table, append the new rows to
> the Access table, then export the table back to Excel.
>
> The other would be to use Automation to open the workbook and use the
> CopyFromRecordset method to append the data, save the workbook, and quit the
> instance of Excel.
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "Pwyd" wrote:
>
> > I was getting help from Ken Snell about exporting to excel, however, when i
> > tried to do it to a specific range, using the link he gave me, it wouldn't
> > work. In fact, the help files clearly state the following:
> >
> > Note When you export to a spreadsheet, you must leave this argument blank.
> > If you enter a range, the export will fail.
> >
> >
> > How then does one find the next "blank" spot on a spreadsheet to export data
> > that isn't simply updated in the same spot every day, but is a log of whats
> > gone on over time.
> >
> >

 
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
Export Excel tuncating leading zeros while export to excel from da RHBKV Microsoft Excel Setup 1 15th Jul 2009 02:48 PM
Export contacts to Excel - No export from folders show up... =?Utf-8?B?Q2hyaXN0b3BoZXI=?= Microsoft Outlook Contacts 2 19th Apr 2005 11:41 PM
Export contacts to Excel - No export from folders show up... =?Utf-8?B?Q2hyaXN0b3BoZXI=?= Microsoft Outlook Contacts 0 19th Apr 2005 05:11 PM
Help!!..Access to Excel export-modify Excel column default width Gary S Microsoft Access External Data 0 22nd Sep 2003 07:58 PM
Outlook 97 - Journal - File - Import & export - Export to a file - Micros Excel Sam Microsoft Outlook Discussion 0 25th Jul 2003 02:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:26 AM.