LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to run XLS Macros from inside a VB script

I'm using a VBS script to generate a CSV file.
I'd like to tune up the script in such a way that it will format the output
so that it opens nicely in XL. To do so, I've recorded a macro for
formatting the data, but the problem is that the file gets re-written each
time I run the VBS script.

I'd like to know if I can write the code from the XL macro directly into the
VBS script. Anyone know how to do this?

In the past, I've been able to open an existing spreadsheet and run an
existing macro using a VBS script, but this is different, because the output
file is overwritten each time the data is generated, so I can't store a macro
inside the spreadsheet. I need to store the 'macro' inside the VBS code.

Thanks! Sam
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros inside Excel Mark Excel Worksheet Functions 4 October 10th 06 03:17 AM
solving inside macros Sneed924 Excel Programming 0 September 13th 05 10:49 PM
How do I refer to other macros inside a macro code? Erkka Excel Programming 3 July 26th 05 03:27 PM
Macros inside macros, and pasting into macro code. pagelocator[_2_] Excel Programming 1 November 24th 04 09:11 AM
Anyone know how to do an EXCEL Script - details inside tranceplanet Excel Programming 1 December 10th 03 01:00 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"