ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Bulk change cells to Array Formula (https://www.excelbanter.com/excel-discussion-misc-queries/111979-bulk-change-cells-array-formula.html)

[email protected]

Bulk change cells to Array Formula
 
I have a sheet with several hundred cells which are filled with array
forumlas. The problem is that none of the formulas have been entered
by using CRTL-SHIFT-ENTER. Does anyone know of a VBA function which
can be used to set all of these cells to Array forumlas?

Thanks,
Justin


Allllen

Bulk change cells to Array Formula
 
Here is a macro to help you.

Sub ConvertToArray()
Dim myrange As Range, thiscell As Range
Set myrange = Application.InputBox("Select range", , , , , , , 8)
For Each thiscell In myrange
thiscell.FormulaArray = thiscell.Formula
Next thiscell
End Sub

You just need to paste that text into a module in your workbook.
Press Alt-F11 for the VB editor, do insert module and paste it in there.

Then go back to excel, do tools macros and run the one called ConvertToArray.

--
Allllen


" wrote:

I have a sheet with several hundred cells which are filled with array
forumlas. The problem is that none of the formulas have been entered
by using CRTL-SHIFT-ENTER. Does anyone know of a VBA function which
can be used to set all of these cells to Array forumlas?

Thanks,
Justin




All times are GMT +1. The time now is 01:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com