Skip to Content

how to broadcast a workbook by using a visual basic program?

i want to broadcast a excel workbook by using a visual basic program not the sapbex menu item. Did anybody know, how to activate the accordant entry in the menu?

Thank you

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 07:17 PM

    Hi Norbert,

    Not sure what you mean by "broadcast". Save the refreshed workbook to a LAN folder? E-mail to users? If the latter, the exact VB code you need will depend on your e-mail system. I know how to do this for LotusNotes and Outlook. Other systems might or might not have an object model that can be accessed from VB.

    Not sure how "automated" you want the process to be. For example, I have a system where an assistant logs in once per month and clicks one button. A pile of workbooks refresh while the assistant is at lunch. For another example, one can use Excel "OnTime" method to "schedule" you to log in at a certain time and then run a list of reports (but Excel must remain open). For another example, you could use Windows scheduler to do the above. There are downsides to the automated log-in, however. The biggest issue is how to pass the user ID and password to the system if no human is around to do so. This issue has driven most people to use SAP functionality instead of VB; there are ways around this issue, but none are completely fool-proof.

    Do you mean VB or VBA? The automated log-in that most people are aware of uses API functions that come with the BEx Analyzer, so you will need to use Excel either directly (VBA) or (I suppose) indirectly from VB.

    Finally ... not sure why the preference for using VB instead of SAP functionality. The warning is that VB will likely need to change when you upgrade your SAP system, whereas SAP functionality will make the transition more smoothly. What functionality is missing in SAP that you want to augment with VB?

    If I knew a bit more about what you are trying to achieve, I could probably help.

    - Pete

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.