ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   running macros (https://www.excelbanter.com/excel-discussion-misc-queries/23883-running-macros.html)

Jay

running macros
 
Hi,
I have created a macro that imports data, sorts it, and delimits it. The
macro in itself works just fine, however trying to run it a second time on a
different file causes it to blow up.

Prior to importing the data, I clear out the old contents so it doesn't
prompt me to overwrite, the re-run of the macro WILL prompt me, and rather
than overwrite, it appears to insert instead, and therby causes it to trash
the existing data.
I'd sure appreciate any help here. Thx.

JE McGimpsey

Without seeing your code, it's nearly impossible to tell.

In article ,
Jay wrote:

Hi,
I have created a macro that imports data, sorts it, and delimits it. The
macro in itself works just fine, however trying to run it a second time on a
different file causes it to blow up.

Prior to importing the data, I clear out the old contents so it doesn't
prompt me to overwrite, the re-run of the macro WILL prompt me, and rather
than overwrite, it appears to insert instead, and therby causes it to trash
the existing data.
I'd sure appreciate any help here. Thx.


Sharon

Agreed. Are you able to post your code?

"Jay" wrote:

Hi,
I have created a macro that imports data, sorts it, and delimits it. The
macro in itself works just fine, however trying to run it a second time on a
different file causes it to blow up.

Prior to importing the data, I clear out the old contents so it doesn't
prompt me to overwrite, the re-run of the macro WILL prompt me, and rather
than overwrite, it appears to insert instead, and therby causes it to trash
the existing data.
I'd sure appreciate any help here. Thx.



All times are GMT +1. The time now is 07:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com