Results 1 to 3 of 3

Array Assign Error

Threaded View

  1. #1
    Registered User
    Join Date
    03-02-2008
    Posts
    39

    Array Assign Error

    What is wrong with the following code? How do I fix it? I get a a run time error 13 "Type Mismatch" error when I execute.

    Option Explicit
    
    Dim S As Variant
    
    Sub Calc1()
        S(1, 1) = 2  
        S(2, 1) = 3
        S(3, 1) = 4
    End Sub
    Thanks,
    Last edited by VBA Noob; 08-14-2008 at 08:15 AM.

Thread Information

Users Browsing this Thread

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

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