BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
farrukh
Calcite | Level 5

Hi,

 

I want to invoke my SAS EG scripts using Excel VBA, i have searched a lot regarding this but as i am not very well versed with VBA programming i am facing issues. It would be great if anyone can guide me in this. thanks in advance.

 

Farrukh

1 ACCEPTED SOLUTION

Accepted Solutions
6 REPLIES 6
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Why?  Excel if a file format, not a development suite.  If anything, drop the Excel part totally and do your work in SAS, outputting files for review.

farrukh
Calcite | Level 5

I am building an excel interface in my automation tool. I will take few user inputs as macro variables in order to trigger SAS and calculate the desired outcome. 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Use SAS EG prompts to get parameters for execution.

http://support.sas.com/resources/papers/proceedings17/0818-2017.pdf

SASKiwi
PROC Star

What about the SAS Add-In to Excel? You can run EG reports directly this way without using VBA.

farrukh
Calcite | Level 5

THANKS FOR YOUR REPLY, I WILL SURELY TRY THIS.

AlanC
Barite | Level 11

Look at this post to get you started:

 

https://communities.sas.com/t5/Integration-with-Microsoft/Run-a-SAS-program-from-Visual-Basic-in-Exc...

 

Yours will be different since you want to go through EG. I think you should consider not having EG in the middle and submit to the SAS server directly. It is a lot easier. You need Integration Technologies client and you want to look at the workspace and the languageservice.

https://github.com/savian-net

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 4668 views
  • 0 likes
  • 4 in conversation