Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Code to determine if a cell contains an array function?

I am looking for ways to reduce filesize and overhead in a large
spreadsheet, and as part of that I'm looking for alternatives to array
functions. I wrote this code thinking I could determine when an array
function occurs:

Dim rCell As Range
For Each rCell In ActiveSheet.UsedRange
If rCell.FormulaArray = True Then
MsgBox rCell.Address
End If
Next rCell

.... but this seems to find a cell that is part of an array. Can anyone
suggest some better code to determine if a cell contains an array
function?

Thanks

  #2   Report Post  
Dave O
 
Posts: n/a
Default

Try
If rcell.HasArray = true then

.... instead.

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
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM
Using other workbooks.. DavidMunday Excel Worksheet Functions 2 July 1st 05 07:35 AM
How to refer to a cell format code? A difficult problem Excel Discussion (Misc queries) 1 May 25th 05 08:42 AM
Code to determine name of Worksheet Ant Excel Discussion (Misc queries) 6 May 24th 05 01:57 PM
Function to determine if any cell in a range is contained in a given cell [email protected] Excel Worksheet Functions 3 February 7th 05 04:19 PM


All times are GMT +1. The time now is 07:36 AM.

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

About Us

"It's about Microsoft Excel"