Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete last item in Array

Status
Not open for further replies.

haybarr

IS-IT--Management
Jan 3, 2007
3
AU
Hi,

Each time a user opens my workbook I create an array of projects from the main worksheet. The user is then able to delete and edit the projects using user forms.

My problem arises when the user deletes all of the projects, can someone please tell me how to delete the last element in an array?

I have tried to Redim to -1 and 0 but throws an error...

Thanks
A
 
Something like this ?
Erase yourArray

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top