- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote a VBScript Macro and installed it. The Macro run from both toolbar button and Macros Dialog Box, successfully.
But I want to run it from Fortran Program,
I put "msdev -ex Macroname" command to fortran Code ( as given Online Document) but I couldn't compile and execute it.
Is there anybody who can help me where I made mistake, please?
Thanks
But I want to run it from Fortran Program,
I put "msdev -ex Macroname" command to fortran Code ( as given Online Document) but I couldn't compile and execute it.
Is there anybody who can help me where I made mistake, please?
Thanks
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First make sure any command you use works from the command line already. Then you can do something like:
use dflib
result = SYSTEMQQ ("at msdev -ex macroname")
If you still have problems post a code sample and describe any error.
James
use dflib
result = SYSTEMQQ ("at msdev -ex macroname")
If you still have problems post a code sample and describe any error.
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
But I still have problem. Compilation is Ok but in running I got "Bad command or Filename" message.
Here is code and as you see it is only test purposes.
Main Prog:
PROGRAM TEST1
use dflib
IMPLICIT NONE
logical result
result=systemqq(" msdev -ex TestMacro")
END PROGRAM
Macro Code:
Sub TestMacro()
MsgBox "Hello"
End Sub
Thanks at advance
But I still have problem. Compilation is Ok but in running I got "Bad command or Filename" message.
Here is code and as you see it is only test purposes.
Main Prog:
PROGRAM TEST1
use dflib
IMPLICIT NONE
logical result
result=systemqq(" msdev -ex TestMacro")
END PROGRAM
Macro Code:
Sub TestMacro()
MsgBox "Hello"
End Sub
Thanks at advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try replacing "msdev" with "dfdev".
James
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi James,
I tried with "dfdev" like
result=systemqq("dedev -ex macroname") .
It works but, firstly it opens a new CVF window and then macro runs.
Thanks your cooperative support.
Regards
Selahattin
I tried with "dfdev" like
result=systemqq("dedev -ex macroname") .
It works but, firstly it opens a new CVF window and then macro runs.
Thanks your cooperative support.
Regards
Selahattin
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page