First, create a Collection and add a dummy element to it:
Set C = New Collection C.Add Null
Then, add elements to your stack like this:
C.Add E, , 1
To see what's on the top of the stack:
To remove the item on the top of the stack:
You might ask why not to implement a stack the other way around. The reason is twofold: readability and performance. When implemented this way, the code is much simpler to read. If you implement a stack the other way around, you will find that although adding elements is slightly faster, due to the implementation of the Collection class removing them takes a lot longer, on the order of the number of elements on the stack.