PC Review


Reply
Thread Tools Rate Thread

blank data when using macros

 
 
childofthe1980s
Guest
Posts: n/a
 
      6th Aug 2008
Hello:

Unfortunately, the developers of my software package are passing the buck to
Excel. So, since I got no help from them, I thought that I would ask you all
about this.

I have an application that can export data to Excel. And, if you create an
Excel macro-based template, my application can run this macro right away so
that the data exported to a spreadsheet can be manipulated immediately by the
macro.

But, for the first time since using this application at a client site, the
spreadsheet contains no data after exporting the data to Excel from my
application.

How is it that a macro is causing data to be erased? Any ideas on this one?

Thanks!

childofthe1980s
 
Reply With Quote
 
 
 
 
Tom Hutchins
Guest
Posts: n/a
 
      6th Aug 2008
Two possibilities come to mind:
1) no data is being exported to Excel
2) data is being exported to Excel but its layout or format is not what the
macro expects. You don't tell us what the macro does. If it deletes heading
rows from a downloaded report, for example, and the layout changed, the macro
might mistake data rows for heading rows and delete them.

Maybe you could insert an Exit Sub (or Exit Function) statement on the
second line of your macro temporarily. Then you could see if any data is
being exported to Excel, and check the layout/format of the data to ensure
that it is consistent with the macro code. Also, you could step through the
macro execution to observe what it is doing, one line at a time (remove the
aforementioned Exit Sub first. Then, from the worksheet select Tools >> Macro
>> Macros. Select your macro, then click Step Into. Press F8 to execute one

line of code at a time.)

Hope this helps,

Hutch

"childofthe1980s" wrote:

> Hello:
>
> Unfortunately, the developers of my software package are passing the buck to
> Excel. So, since I got no help from them, I thought that I would ask you all
> about this.
>
> I have an application that can export data to Excel. And, if you create an
> Excel macro-based template, my application can run this macro right away so
> that the data exported to a spreadsheet can be manipulated immediately by the
> macro.
>
> But, for the first time since using this application at a client site, the
> spreadsheet contains no data after exporting the data to Excel from my
> application.
>
> How is it that a macro is causing data to be erased? Any ideas on this one?
>
> Thanks!
>
> childofthe1980s

 
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
loop macros until reach blank in adjacent column =?Utf-8?B?TWNLQ29sbGlucw==?= Microsoft Excel Programming 1 7th Jul 2006 10:56 PM
detecting the first blank row in the spreadsheet and populate the blank row with data racerrunner Microsoft Excel Programming 2 14th May 2006 06:22 AM
Imported Data creates blank cells that aren't really blank =?Utf-8?B?SmFja2llRA==?= Microsoft Excel Worksheet Functions 14 23rd Feb 2006 12:57 AM
VBA macros to check a blank =?Utf-8?B?Y29mZmVlMTE=?= Microsoft Excel Programming 1 8th Nov 2005 03:58 PM
Macros - How to tell if cells in a column are blank? Natasha Microsoft Excel Programming 3 9th Sep 2003 02:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:15 AM.