Solved

remove icon from listview

Posted on 1998-11-09
3
207 Views
Last Modified: 2008-03-06
I have tried the following but I can't get either one to work. Any suggestions.

MyStuff = listview1.listitems.remove() does not like .remove
 or
Set MyStuff = listview1.listitems
MyStuff.Remove 2   does not like .remove

I can use
ListView1.ListItems(IconCnt).Ghosted = rs.rdoColumns("view_index").Value 'True
 
and after the user logs out and comes back into the program the icon is not there. But I would like to remove the icon immediately.

0
Comment
Question by:MaryD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1443923
What does it do? Does it raise an error or what.

listview1.listitems.remove listview1.selecteditem.index
should remove the selected item.
0
 

Author Comment

by:MaryD
ID: 1443924
Thanks that worked, I was getting an error before on the remove.

didn't recognize the word .remove
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1443925
Since I seem to have answered the question.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question