#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vba delete

Hello,
I want to write a vba that find row and delete it. I confirmed that
the match function returns some number OK, but delete function has
'13'runtime error-.
Could someone help me?
Thank you.
David

delrow = Application.WorksheetFunction.Match(partnumber &
Invoicenumber, Range("d:d"), 0)
Rows("delrow:delrow").Delete
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,549
Default vba delete

Dim delrow As Long

delrow = 5
Rows(delrow).Delete
--
Jim Cone
Portland, Oregon USA
http://www.contextures.com/excel-sort-addin.html
Editorial review of Special Sort Excel add-in (30 ways to sort)




"s"
wrote in message
...
Hello,
I want to write a vba that find row and delete it. I confirmed that
the match function returns some number OK, but delete function has
'13'runtime error-.
Could someone help me?
Thank you.
David

delrow = Application.WorksheetFunction.Match(partnumber &
Invoicenumber, Range("d:d"), 0)
Rows("delrow:delrow").Delete



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vba delete

On Mar 6, 9:55*am, "Jim Cone" wrote:
Dim delrow As Long

delrow = 5
Rows(delrow).Delete
--
Jim Cone
Portland, Oregon USAhttp://www.contextures.com/excel-sort-addin.html
Editorial review of Special Sort Excel add-in (30 ways to sort)

"s"
wrote in ...



Hello,
I want to write a vba that find row and delete it. I confirmed that
the match function returns some number OK, but delete function has
'13'runtime error-.
Could someone help me?
Thank you.
David


delrow = Application.WorksheetFunction.Match(partnumber &
Invoicenumber, Range("d:d"), 0)
Rows("delrow:delrow").Delete


Thank you so much Jim.
You are my time saver.
David
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
Macro to delete sheets and saves remaining file does not properly delete module pherrero Excel Programming 0 June 21st 05 05:16 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:53 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:53 PM
Macro to delete sheets and saves remaining file does not properly delete module bhawane Excel Programming 0 June 21st 05 04:20 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM


All times are GMT +1. The time now is 11:52 PM.

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"