Hello,

I have written a VB macro in Microsoft Word. The function of the macro is to read a word document(which has tables) and generate the corresponding sql files with many sql statements in the same folder with .sql extension. Now, the expected functionallity is "when I run a macro it should generate sql files and also execute the generated sql file".
Can this be done?
I am new to VB. So please help proceed with this.

Thanks