Open Cognos report in Excel - cognos

I have a question regarding opening Cognos reports in Excel.
After saving a Cognos report in a Cognos (Server) directory, will I be able to open this report in Excel? In other words: how can I access the Cognos directory in Excel?
Kind regards,
Edwin

Click on the more button for the report and choose run as.
Click on the Excel radio button
Press the run button.
It will generate the report as an Excel document and download it for you.

Related

Open 'Insert Hyperlink' menu in Excel office Add-in

I want to open the 'Insert Hyperlink' menu programmatically without right clicking the cell.
https://stackoverflow.com/questions/48985342/open-insert-hyperlink-menu-in-excel-through-a-clickable-shape#:~:text=Application.Dialogs(xlDialogInsertHyperlink).Show
this link shows the way to achieve this in vba, is there a similar way for opening hyperlink menu in Excel office Add-in?
There is not yet an Office JS API similar to the Application.Dialogs API in VBA that can be used by an add-in to open Excel dialogs. Please consider logging a request for this API in the Microsoft 365 Developer Community.
An alternative might be to have the add-in provide UI similar to the Insert Hyperlink dialog either in the task pane or in a dialog.

How to know that a VSTO Word and Excel addin is being started by the Windows Explorer preview pane?

I have noticed that when users have the Windows file explorer preview pane enabled and then view a Word or Excel file, that my VSTO addin is started. Further my addin starts again when the user double clicks on a excel or word file.
What properties in Word and Excel do I need to check at startup to know that it is the preview pane?
For people's reference I did find a discussion on this for Powerpoint in this SO question.
When Word and excel are started by the file explorer as a preview then what I have found is that you can check for a commandlinearg of -Embedding
Environment.GetCommandLineArgs().Contains("-Embedding"))
Detecting Automation of Excel is where I found this answer. This question is about automation.
Also when a user embeds for example Excel in Word and then edits the embedded Excel the VSTO addin will start multiple times. You can check for the -Embedding arg for this as well.
Typically the ribbon bar is not visible when Office applications are used for rendering documents in the Windows explorer. You may use the following code to check that:
Application.CommandBars("Ribbon").Visible

Is it possible to click buttons in the toolbar with macros in Excel 2010?

Is there anyway to make a macro that can click buttons in the tool bars of Excel? I'm using Excel 2010.
Here's how you can record a macro, which will capture your actions.
For Excel 2010:
http://www.dummies.com/how-to/content/how-to-record-a-macro-to-automate-tasks-in-excel-2.html
For Excel 2013:
http://www.dummies.com/how-to/content/how-to-record-new-macros-in-excel-2013.html
In your case, to take this even further, you can do coded UI testing right from Visual Studio. For what you are trying to do, this is even better than only trying to automate a button-click to fire a custom add-in.
Here is a way how you can achieve it with excel 2010:
File->Options->Quick Access Toolbar.
in the "Choose Commands From" list you click "Macros". Select the macro and click add.
If you want change the name of the button you can click "Modify".
Hope it will help you.

How to avoid the editing of a macro in Excel?

I have written a macro in Excel. When I send it to some user, he should not be able to see the macro.
Say I have a Excel workbook sample.xls, and it has a macro button to save the workbook to the server. When some other user opens the workbook, he should not be able to edit the macro behind that button.
How do I block other users from editing the code?
To lock a VBA project for viewing
Open the document, template, or database that contains the VBA project you want to protect. For Outlook or FrontPage, start Outlook or FrontPage on the computer that contains the VBA project you want to protect.
Open the Visual Basic Editor.
In the Project Explorer, right-click the project you want to protect, and then click ProjectName Properties on the shortcut menu.
On the Protection tab, select the Lock project for viewing check box, enter and confirm the password, and then click OK.
You can password protect it. But I'd suggest you search how to do it for your specific version of MS Excel. There is a link which shows how to do it in MS Excel 2003, I think: http://www.ozgrid.com/VBA/protect-vba-code.htm

Excel RibbonBar is not showing when Excel file is opened directly

I have developed a custom Excel 2010 Add-in and custom RibbonBar using VS 2010. When I install the custom Add-in for Excel, the RibbonBar is displayed or shown properly when Excel is opened. BUT, when I double-click the Excel file (.xlsx), the ribbon bar does not show on the Menu.
Please advise.
Few checks that may help
Disable all addins installed and then open a xlsx file by
enabling one addin in turn.
Start excel, create a new excel file
save, close and open it again to check if ribbon appears. If it work
fine for this, there could be some problem in file format or macro
attached with the file

Resources