VBA Launch Navision Version 3.56

superkris95

New Member
Joined
Jun 27, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello guys,

I have a task at work that is beyond my capabilities, and I of course already looked for inspiration..
At my work we can connect to our client from any computer at the location, so I guess we are using RDS (Remote Desktop Service).

I want excel VBA to launch Navision (version 3.56.A) ((c) 1987-1998 Navision Software a/s).
I have this as a shortcut on the desktop when I log in - its called Navision Server 7.

When I've figured out the launching, I also want to build in some steps where Excel extract different files from Navision.

What do I do and what do you need from me?


Kind regards,
Thomas
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Right click on your shortcut to edit it and copy the command line shown.

lets assúme it reads C:\\ProgramFiles\Navision.exe
If there is any text after the Navision.exe then that is an argument.

In Excel VBA copy the following macro:
VBA Code:
Sub ShellNavision()
    Dim Arg As String
    Arg = "MyArgument"
    Shell "C:\Program Files\Navision.exe" & " " & Arg
End Sub
In the above replaceMyArgument with whatever argument was in the shortcut and on the Shell line replace the required text to open the Navision

Getting Navu=ision to do something will be more difficult. You can pass it keystrokes, but that is cumbersone to program, but doable
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top