ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Newbie Question (https://www.excelbanter.com/excel-programming/349081-newbie-question.html)

mikesr20

Newbie Question
 

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

--
mikesr2
-----------------------------------------------------------------------
mikesr20's Profile: http://www.excelforum.com/member.php...fo&userid=2995
View this thread: http://www.excelforum.com/showthread.php?threadid=49658


DS NTE

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

"mikesr20" skrev i
melding ...

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




mikesr20[_2_]

Newbie Question
 

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


--
mikesr20
------------------------------------------------------------------------
mikesr20's Profile: http://www.excelforum.com/member.php...o&userid=29959
View this thread: http://www.excelforum.com/showthread...hreadid=496585


mikesr20[_3_]

Newbie Question
 

Any help??

--
mikesr2
-----------------------------------------------------------------------
mikesr20's Profile: http://www.excelforum.com/member.php...fo&userid=2995
View this thread: http://www.excelforum.com/showthread.php?threadid=49658



All times are GMT +1. The time now is 03:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com