+ Reply to Thread
Results 1 to 4 of 4

Newbie Question

  1. #1
    Registered User
    Join Date
    12-29-2005
    Posts
    4

    Newbie Question

    I am writing a program that uses a ticket number that will need to add to itself each time a button is clicked. I have wrote this small code to do so however each time I close and open the program the ticket number goes back to 1. Please help any direction will be great.
    thanks.
    Mike

  2. #2
    DS NTE
    Guest

    Re: Newbie Question

    Please post the code....
    Anything in Workbook_Open , Worksheet_Activate or ...??

    "mikesr20" <[email protected]> skrev i
    melding news:[email protected]...
    >
    > I am writing a program that uses a ticket number that will need to add
    > to itself each time a button is clicked. I have wrote this small code
    > to do so however each time I close and open the program the ticket
    > number goes back to 1. Please help any direction will be great.
    > thanks.
    > Mike
    >
    >
    > --
    > mikesr20
    > ------------------------------------------------------------------------
    > mikesr20's Profile:
    > http://www.excelforum.com/member.php...o&userid=29959
    > View this thread: http://www.excelforum.com/showthread...hreadid=496585
    >




  3. #3
    Registered User
    Join Date
    12-29-2005
    Posts
    4
    here is the code.

    Function accumulate(n)
    Static sum
    sum = sum + n
    accumulate = sum
    End Function

    it then outputs the value into a cell in excel

    thanks

  4. #4
    Registered User
    Join Date
    12-29-2005
    Posts
    4
    Any help???

+ 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