Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default NOT A VBA Question, I need to delete a row which has a certain cell value, can anyone guide me in the right direction?

I need to code a method in VB.NET to delete entire rows of which a cell
in that row contains a certain value. So for instance, I'll try to sum
it up in words

Search through all cells in Column(column index)
If the Cell(rowindex, columnindex).VALUE = "UNWANTEDVALUE"
then DELETE.ROW(rowindex)

Another post had mentioned using a range to delete all rows satisfying
the condition at once.
I'd love to do that, but I can't figure that out either. So if there is
anyone that can help me with either solution, please do so.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default NOT A VBA Question, I need to delete a row which has a certain cel

See Excel VBA help on the FIND method to find a value

See Excel VBA help on Autofilter if you want to filter on a specific value.

You will have to translate it to .NET

--
Regards,
Tom Ogilvy


"LJ" wrote:

I need to code a method in VB.NET to delete entire rows of which a cell
in that row contains a certain value. So for instance, I'll try to sum
it up in words

Search through all cells in Column(column index)
If the Cell(rowindex, columnindex).VALUE = "UNWANTEDVALUE"
then DELETE.ROW(rowindex)

Another post had mentioned using a range to delete all rows satisfying
the condition at once.
I'd love to do that, but I can't figure that out either. So if there is
anyone that can help me with either solution, please do so.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change direction active cell indicator moves when enter key is pre ldavidm Excel Discussion (Misc queries) 2 September 20th 09 03:49 PM
How do I change the direction of the cell when I press enter jonathan New Users to Excel 1 January 8th 09 03:25 PM
reverse cursor/text direction within cell [email protected] Excel Discussion (Misc queries) 4 August 24th 08 06:12 AM
for each cell in range....direction problem Sunil Patel Excel Programming 4 July 7th 05 03:40 PM
Wshshell / VB direction question Steve[_58_] Excel Programming 3 May 24th 04 09:20 PM


All times are GMT +1. The time now is 11:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"