xla

How do I sign an XLA from Excel 2016 with a timestamp?

无人久伴 提交于 2020-05-15 04:49:06
问题 I am struggling to sign an XLA from Excel 2016 with a timestamp . This is important, because without a timestamp the signature becomes invalid when the code signing certificate used expires. Unfortunately by default Excel does not apply a timestamp to the signature. Microsoft's documentation (https://docs.microsoft.com/en-us/deployoffice/security/use-digital-signatures-with-office) states: To use the time stamp functionality with digital signatures, you must complete the following tasks: Set

XLA file not saving in Excel 2010

冷暖自知 提交于 2019-12-25 08:51:41
问题 I'm using Excel 2010 and I have a .xla file with VBA macros, I edit the macros with the VBA editor, then save it. Later when I reopen the .xla file my changes are lost. On the internet I found other people with the same problem, e.g. MS-Excel VBA file (XLA) saving problem, but not solution. 回答1: please try to save it in the VBA-Editor. This ist what I have to do with xlam-files. 来源: https://stackoverflow.com/questions/46662527/xla-file-not-saving-in-excel-2010

Calling an XLA add-in method (function/sub) when the add-in is not loaded

社会主义新天地 提交于 2019-12-11 16:08:07
问题 I need to call a method that is provided by a third-party XL A add-in via my VBA code. There are already answers for doing this with a loaded XLL add-in, but the intention is to call the method directly. 回答1: Based on e.James' answer for calling an XLL add-in, I figured out the right format to use if the Add-in isn't already loaded . You can use Application.Run for calling methods inside an .xla Add-in the following way: If we assume that the path to our .xla file is C:\Program Files\example

Possible to tell which workbook called a function in an Excel Add-In (xla)

[亡魂溺海] 提交于 2019-12-10 12:57:51
问题 I want to write a little logging function in an excel add-in that I will be calling from many different workbooks. I'd like to be able to just call it by passing only the log text, and the log function itself could handle the timestamp, workbookname , etc. However, I cannot use either ThisWorkbook or ActiveWorkbook to determine which workbook was responsible for making the call, as Thisworkbook will return a reference to the add-in itself, whereas VBA code running in a workbook other than the

Add-in makes Excel crash when starting minimized

。_饼干妹妹 提交于 2019-12-08 07:35:45
问题 I start Excel from within my C# WinForms application using Process.Start(...) (this has a reason). I want to start it in background, without distracting the user, so I try to start it minimized or hidden. In both cases, I experience a very weird behavior: After some seconds, Excel restores the window (even makes it visible if it's hidden) and then crashes saying: "Microsoft Office Excel has encountered a problem and needs to close. (Win XP crash message.)" The same thing happens if I start

Worksheet_SelectionChange event in xla add-in

南笙酒味 提交于 2019-12-08 02:20:42
问题 Is to possible to trigger Worksheet_SelectionChange event in xla add-in. I put the code in Worksheet module of add-in. but it did not enter into this module. My target is to set the comment box in the center of active window. I got the code from here. Please help me. 回答1: You need to work with Application-level events if you want to capture an event in another workbook. See here 来源: https://stackoverflow.com/questions/10442842/worksheet-selectionchange-event-in-xla-add-in

Worksheet_SelectionChange event in xla add-in

安稳与你 提交于 2019-12-06 05:40:58
Is to possible to trigger Worksheet_SelectionChange event in xla add-in. I put the code in Worksheet module of add-in. but it did not enter into this module. My target is to set the comment box in the center of active window. I got the code from here . Please help me. Tim Williams You need to work with Application-level events if you want to capture an event in another workbook. See here 来源: https://stackoverflow.com/questions/10442842/worksheet-selectionchange-event-in-xla-add-in

Excel VBA Recalculate Selection

白昼怎懂夜的黑 提交于 2019-12-05 21:43:38
I've got some Excel spreadsheets that are hitting the database pretty hard (100+ queries against the general ledger table... yikes!). Refreshing just the sheet I'm on (SHIFT+F9) is helpful in some spreadsheets, but I wanted a way to refresh just the selected cells. I'm came up with the following code, placed in the ThisWorkbook object: Dim currentSelection As String Private Sub Workbook_Open() Application.OnKey "+^{F9}", "ThisWorkbook.RecalculateSelection" End Sub Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) currentSelection = Target.Address End Sub

How to stop Excel storing the absolute path to an XLA?

◇◆丶佛笑我妖孽 提交于 2019-12-03 06:25:15
问题 I have an XLA file that is to be deployed to a number of users in the organisation as an Excel add-in. My intention is to deploy it to a directory in the user's "documents and settings" folder in "Application Data\MyCompany". (In fact this is all working through a wrapper that copies the latest version of the XLA locally and installs it as an Excel add-in). However, if a user creates a sheet that references a function defined in this XLA then Excel appears to store the absolute path of the