Add Tab using EPPlus with MovetoStart Groups First Two Tabs - epplus

I use EPPlus (current version) to create a new ExcelPackage using an existing template file that has several other tabs. I add a new tab, which gets added as the last tab, and populate the data. If I perform a MovetoStart function on the worksheet, it successfully moves the worksheet, but groups it with what previously the first tab. While it's pretty easy to ungroup, I'm trying to highly automate a process and a workaround is not what I need. Suggestions?

Related

How can I copy a Quality Worksheet's template design in Odoo 16?

I want to create a server action "Duplicate" that will copy a selected Quality Worksheet and its template design. I know how to create server actions, but I'm not sure if its possible to write its python code that will copy the template design.
So far I've been able to create a server action that will copy a selected row and create a new Quality Worksheet entry, but it has the default, blank template design

Working with Multiple Windows; Keeping one static

I'm building a workbook and I created a "Menu" sheet that I want to serve as a thin navigation bar to launch all of the various macros/userforms that run in the workbook.
My plan is to have one window always set to the "Menu" sheet and just be a thin bar on the left side of the work area. The other window would take up the rest of the workarea and display all of the other various sheets.
How do I get the first window to always display the menu sheet and execute the macros launched from that window in the other window? Also, let me know if you have any better ideas to do what I'm trying to do.
I'm currently doing something similar. I took a different approach that you could adopt.
So I have a workbook with many sheets, and a main 'Control Panel' worksheet where the user inputs their data and run macro buttons to do lots of magical things(!)
I just placed all my macro buttons in Row 1 of the sheet and then used the "Freeze" Panes tool to freeze the top row. That way, if the user is on the Control Panel Sheet, the macro tools are always available regardless of where they are on the sheet.
I have set up the same buttons (which are contextually appropriate) on the other worksheets. So essentially the user can operate them from anywhere.
Just some food for thought :)

Linking two dashboards based on a table selection in Qlikview

In the past, I have used Tableau, another Data Visualization tool just like Qlikview where I could link a selection on a table or graph (or really an worksheet on a dashboard) to another dashboard by setting a source and destination dashboard/sheet. I did this using 'Action Filters'.
I am trying to do the same thing in Qlikview where I want to link two dashboards and transfer the selection in the source dashboard as a filter to the destination dashboard. Any idea if this is possible? And if yes, how can I implement this?
If you are using a trigger, say, on a button which opens a new QlikView Document, there are options to transfer state. This will carry over your current selection criteria. However, the fields in the destination document must have the same name.
See button properties -> Actions -> Add -> Action type external: Open QlikView Document. You will return to the Actions tab with options available to the newly added action.
Try to solve it with the data-model behind these two dashboard. If they use the same data resp. the data-tables are connected this works out of the box in QlikView because of the so called associative data-model in QlikView.
No need to connect the dashboards manually, zero configuration ...

Please let me know feasibility using Excel and VBA programming and suggest solution approach

We have following requirement to be done via excel and VBA programming. Please check and let me know if it feasible to do so and if not what way would be best to do it.
There would be excel spreadsheet say excel 2007/2010 with 2 tabs.
1st tab contains normal excel data
In 2nd tab user can enter a particular value and then click on a button in same tab. Is it possibly to have a button in excel tab and can it raise events like windows/web applications?
Now if button can be kept in excel and it can raise button click event then on such an event we need to create xml files. Is it possible to create xml files adhering to schema using excel &/or VBA programming
You need to activate the developer tab (from backstage go to Options and check the visibility of this tab) to get access to normal windows controls, like buttons and drop-down lists etc. You can easily place those in Excel sheets and write event handlers: the controls support the full range of events, including OnClick, OnMouseEnter etc...
You can write custom text files directly from VBA, but you can't validate those. The usual way to do so is just to concatenate small XML blocks into a bigger file, so XML output is more like a normal text output. But it works fine and as long as you do not need to perform something really complicated it is also ok.
EDIT: You can easily add references to custom COM objects (.dll or .ocx) and use them directly in your VBA code. One very helpful suggestion (see the comment below) is to use the MS XML library.
To add a reference just open the code editor (Alt + F11) and then go to Options -> References. Most of the references you need will be already in the list and you just have to check them, but you can also add your own custom libraries by clicking on Browse.

Excel VBA - Run macro on Application open

I've got this Design Template I want to apply to the application by default whenever it's opened. But a document needs to be open in order to apply a Design template. So I have to target some handlers whenever a new or existing workbook is opened/created.
So which approach can I take here?
I think you can use the Workbook_open event. It sounded like that would be sufficient for the behavior that you want, but since you want your macros to be global, you might need to make them into an add in for them.
The add-in approach is best for applying to existing workbooks.
If you're looking to have a standard design template applied to each new workbook, though, I suggest you create a template.
To do this:
Create a new empty workbook
Apply the design template
Save the file as Book.xlt (for Excel 2003; Book.xltx for versions 2007, 2010) in the following folder: %appdata%\Microsoft\Excel\XLSTART\
Each time you create a new workbook (by opening Excel or hitting the "New" button), it'll be generated from this template file.