I am working with Excel and we are using an Excel Addin to perform some of the calculations that we may need. The add-in has various formulae. What I am trying to do is write a VBA macro that will identify any formulae from the add-in being used in the sheet and paste them as values. Is there any way the macro can identify which formulae are linked to the add-in and which of those are plain excel formulae?
It is not ideal especially if your add-ins have many functions. But basically you can create a table with 2 columns, AddinName, FunctionName. And then you can loops through cells check if a cell has formula using the Range.HasFormula. And then check if any of the functions you have in the table you created is in that cell.
Related
I have an excel sheet embedded in an MS-Word document. At another place in same document I want to put in some outcomes from the embedded spreadsheet (2 cells in particular). The word file needs to be shareable too.
I have tried "linking" excel sheet, but then have to share it (the excel) along with the docx file. Also tried embedding different spreadsheet, but the formulas in the sheets do not talk (or cannot talk to my knowledge)
Is there any way to do this in easy fashion?
What you are asking is not possible. The only workarounds would be to use:
a) an external Excel workbook, with each of your embedded worksheets linked to that; or
b) a macro to activate a given 'source' embedded worksheet in the document, gather the required data from there, then insert that data in the corresponding 'target' worksheet.
I am looking to use a VBA in excel to copy rows/columns of data from my organisation's trading platform (Fidessa) to an excel workbook. The problem I've encountered however is that Fidessa doesn't have an excel plug-in as standard. So is there a way for excel or VBA to automatically copy and paste fields of data from external applications such as Fidessa?
I'm relatively new to VBA so any help would be welcome, thanks!
Used VBA code to copy data as screenshot but this is not suitable. It needs to be the data rows/columns from Fidessa copied across to Excel in order for it to be viable/functional.
I have a workbook that gets its data from a SharePoint library. The idea is to automatically generate reports from the excel workbook and send automatic emails with the report attached. Problem is: recently, after the workbook refreases, formulas are missing in some cells making the reports incorrect. What is causing the formulas not to be applied in some cells?
Make sure filters are cleared before inserting the formula. Filters make some rows hidden and the formula is not applied to them.
My group currently uses Excel workbooks to track performance of employees. Each employee has their own workbook and they are identical except for the user entered data. There are custom VBA formulas on this workbook that take the data and generate a score base.
What I would like to do is move these formulas to another workbook, that way if a calculation needs to be changed, it can be changed in one source document, as opposed to hundreds of workbooks.
I'm envisioning something like...
='[Source Formula Workbook.xlsm]'!Formula_A(A1, A2, A3...)
...where A1, A2, A3 are cells in the user workbook and this returns the value of Formula_A from my hypothetical source workbook. What's the right way to accomplish this?
The usual way to do this is to move the VBA functions to an XLA/XLAM addin and store the addin on a network drive. Then each employee needs to use the Excel Addin Manager (or an installer) to add the networked XLA to their Excel.
see http://www.cpearson.com/excel/createaddin.aspx on how to create an addin.
You can create a simple installer XLSM file that uses VBA to add the XLAM to the addins list:
With AddIns.Add(FileName:=MyNetworkAddInPath)
.Installed = True
End With
I'm looking for a simple way to recreate a relatively complex Excel sheet with a macro, inculding cell values, formulas, formatting, and cell size.
Basically, I have an Excel sheet and I need the VB code that would create the sheet. I.e. somewhat like using the macro recorder, but without having to do all the steps in sequence.
Any ideas?
(Copying from a template xls would be much more convenient, of course, but I'm limited to code and can't use additional files in production, for now).
If you don't want to use additional files, put your template as a separate sheet in the same XLS where your macro resides. IMHO, you should avoid having to recreate a complete sheet by code, at least for maintenance reasons.