+ Reply to Thread
Results 1 to 2 of 2

Does setting a variant acting as an array equal to "" accomplish same as "Erase" variant?

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    77

    Does setting a variant acting as an array equal to "" accomplish same as "Erase" variant?

    The title more or less speaks for itself. I'm wondering if setting a variable that contains an array equal to "" is actually better than using the erase statement because it will also remove all dimensions from the array as well.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Does setting a variant acting as an array equal to "" accomplish same as "Erase" varia

    Setting a variable to null string and erasing an array are not the same. When you erase an array, it wipes out the values(Elements) on the array.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cell.Replace "XY", Variant(I) & "XY" formulla builder not functioning
    By Leon V (AW) in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2014, 07:11 AM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. Setting values for "TRUE","FALSE" and "#REF!"
    By Hurtige in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2006, 07:31 AM
  5. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1