LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Is Array Empty | Boolean Answer

Hello

I have a subroutine that may or may not be presented with an array. If an
array has not been presented, then it should take the array from the current
worksheet:

Sub CreateTAPPIndex(Optional TAPPMatrix As Variant)
If IsEmpty(TAPPMatrix) Then
Rem This section understands when the matrix is a raw sheet versus a
presented array
Range("2:2").EntireRow.Delete
TAPPMatrix = Range("a1").CurrentRegion.Value
End If
End Sub

But if TAPPMatrix is undefined, it does NOT trigger a TRUE response from
IsEmpty. What am I doing wrong? Is there a better way?

Thank you

W


 
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
Linest Array vertical answer return Baffeled Excel Discussion (Misc queries) 2 January 27th 09 02:04 PM
Calculator Answer Doesn't Match Excel Answer GwenH Excel Discussion (Misc queries) 3 October 20th 08 10:17 AM
Array formula correct but end up with 0 for answer Heather Excel Discussion (Misc queries) 5 July 30th 07 03:19 AM
Array gives wrong answer Shu of AZ Excel Discussion (Misc queries) 1 November 11th 06 07:03 PM
Differentiate between "" and Empty in array elements. RB Smissaert Excel Programming 3 January 2nd 04 09:01 PM


All times are GMT +1. The time now is 09:39 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"