[quote user="Mark Kovach-WGI"]
I'm still new to MicroStation VBA as there are sooooooooooooooooooooooooooooooooooooooooooooooooooooo many commands to learn. Can someone point me in a direction on how to create a mvba to delete cells in a file with a specific cell name? I have compiled a collection of commands and tried to assemble something but it fails miserably. I've read the vba help file but cant seem to get the right commands to do what I need. I won't hold against you from providing ALL of the code but anything to get me going would be great. So many smart people on this forum.
Thank you in advance.
[/quote]
Mark I'm not very good at VBA either but my first approach is to always try to use the VBA Macro Recorder first and do all the steps manually on a typical example file
then test it works on a different file..
Now in your case the manual method would be before starting the recorder is to locate one of the specific cells or add it by hand so you know its right.
Then turn on or start the VBA macro recorder and then run the Select by tool and choose by element and then select the offending cell and the tool will then recognise its name and record it into the code... then execute to select all the right cells puts them in a selection set and then you choose the delete and stop recording.
This will produce a crude vba code not at all elegant like the ones suggested but it will work and you can open it to look at how it works and modify the cell name when and if needed.
This will help you to 1 get the job done and 2 make you less warey to use VBA programming...