+ Reply to Thread
Results 1 to 3 of 3

why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel?

  1. #1
    David McRitchie
    Guest

    Re: why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel?

    Hi Daniel,

    XL: Scope of Variables in Visual Basic for Applications
    http://support.microsoft.com/default...;en-us;Q141693

    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "Daniel" <[email protected]> wrote in message news:[email protected]...
    > why is it saying sheetcnt is "variable not defined" how to do a global
    > variable to share over multiple functions in vba for excel?
    >
    > Dim sheetcnt As Integer
    > Private Sub cmdImport_Click()
    > sheetcnt = 1
    >
    >




  2. #2
    Daniel
    Guest

    why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel?

    why is it saying sheetcnt is "variable not defined" how to do a global
    variable to share over multiple functions in vba for excel?

    Dim sheetcnt As Integer
    Private Sub cmdImport_Click()
    sheetcnt = 1



  3. #3
    David McRitchie
    Guest

    Re: why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel?

    Hi Daniel,

    XL: Scope of Variables in Visual Basic for Applications
    http://support.microsoft.com/default...;en-us;Q141693

    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "Daniel" <[email protected]> wrote in message news:[email protected]...
    > why is it saying sheetcnt is "variable not defined" how to do a global
    > variable to share over multiple functions in vba for excel?
    >
    > Dim sheetcnt As Integer
    > Private Sub cmdImport_Click()
    > sheetcnt = 1
    >
    >




+ 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