+ Reply to Thread
Results 1 to 2 of 2

public const

  1. #1
    Registered User
    Join Date
    09-14-2003
    Location
    sweden
    Posts
    25

    public const

    HI, i'm trying to declare a public constant in the general selection just as it say's in the ms help section, but excel won't approve of it.

    where do i get it wrong?

    here's my codeline


    public const mystr as string = "testing"

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by jocke
    HI, i'm trying to declare a public constant in the general selection just as it say's in the ms help section, but excel won't approve of it.

    where do i get it wrong?

    here's my codeline


    public const mystr as string = "testing"
    Hi,

    You need to do that in a Module, not in Worksheet or Workbook code.

    ---
    Si fractum non sit, noli id reficere.

+ Reply to Thread

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