Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - Multiple Array-Enter Command

I have a series of lengthy functions that are each dependent upon a
value in the same row. Copying the standard formula down is no
problem, however array formulas cannot be copied. I've generally just
copied the standard formula (that without the array enter gives a
#VALUE error) and then going through and array-entering
(ctrl+shift+enter) each cell. However, as my worksheets get more
complicated and my worksheets contain more and more array formulas,
array-entering each of them becomes time consuming. I've been
unsuccessful in writing a macro to help me out with this.

I'm effectively looking for the correct VBA language that would enable
a selected range of cells containing unique regular (i.e. not array)
formulas to each be "arran-entered" . Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default VBA - Multiple Array-Enter Command

Array formulas CAN be copied, though you need to make
sure the arget range doesn't include the original array
(otherwise you get the error "You cannot change part
of an array"

To define an array formula in VBA you can use the
FormulaArray property. E.g. to convert formula in the
active cell to an array formula:

ActiveCell.FormulaArray = ActiveCell.Formula

but as I said above you shouldn't need to do this just to
replicate AFs.

Andrew



wrote:
I have a series of lengthy functions that are each dependent upon a
value in the same row. Copying the standard formula down is no
problem, however array formulas cannot be copied. I've generally just
copied the standard formula (that without the array enter gives a
#VALUE error) and then going through and array-entering
(ctrl+shift+enter) each cell. However, as my worksheets get more
complicated and my worksheets contain more and more array formulas,
array-entering each of them becomes time consuming. I've been
unsuccessful in writing a macro to help me out with this.

I'm effectively looking for the correct VBA language that would enable
a selected range of cells containing unique regular (i.e. not array)
formulas to each be "arran-entered" . Any ideas?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter multiple numbers in a cell so total shows when enter keypres newbie Excel Worksheet Functions 2 August 19th 07 12:23 PM
Using command buttons to enter data Nick T Excel Discussion (Misc queries) 1 January 12th 07 02:20 PM
Enter Command Lil Pun[_8_] Excel Programming 6 June 8th 06 08:47 AM
Why does the error pop up- can't enter command mode? Thief_ Excel Programming 0 April 7th 05 06:43 AM
SEARCH EXCEL ARRAY FOR NON-VOIDS AND ENTER INTO ANOTHER ARRAY, ROSE THE RED Excel Programming 1 December 31st 04 06:01 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"