Quantcast
Channel: Toad Intelligence Central Forum - Recent Threads
Viewing all articles
Browse latest Browse all 49

Excel Macros on TIC , file created during run time is retaining data from previous macro executions.

$
0
0

Hi, I have an automation script published on TIC, that uses an export activity which runs an excel macro after the sql export. 

macro does a calculation which is , multiply value in cell D4 with 100. This calculation happens in the file created during run time but every time this script runs  it retains multiplied value from the previous runs, which should not happen as multiplication happened during the run time and the orginal file value should not be multiplied and saved. 

This happens if I run script multiple times on the same date:

so for example let's assume initial value in cell D4 is 1, after first run on 1/4/2017 it will become 100, after second run on 1/4/2017 it will be 10000, after third run on 1/4/2017 it will be 1000000

however on 1/5/2017 it will again be 100 after first run ,10000 after second  and so on.

My understanding is all these files are created during run time and any calculation during the execution of macro,should not affect the original xlsm file


Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>