Dear Tony, U can use without macro.... Just select the range and press ctl+G of press F5 function key . Then click to blank cell and use Alt+E+D select the row and delete it
Regards, Gawli anil On Thu, Jul 26, 2012 at 8:42 AM, NOORAIN ANSARI <noorain.ans...@gmail.com>wrote: > Dear Tony, > > Please try it.. > > *Sub DeleteBlank()* > * On Error Resume Next > ActiveSheet.UsedRange.SpecialCells(xlCellTypeBlanks).EntireRow.Delete > On Error GoTo 0: On Error GoTo -1: Err.Clear* > *End Sub* > > > On Thu, Jul 26, 2012 at 5:13 AM, Tony O <> wrote: > >> I am working on a spreadsheet with Excel 2007. >> I have the vba code to delete a line: >> >> Selection.Delete Shift:=xlUp >> >> I want to delete all rows that have the cells in column A that are blank >> and column B and column C for just those rows. >> >> I'm thinking that the code should look something like this, but I am not >> getting it to work the way I want to: >> >> dim rowchk as integer >> >> for rowchk = 1 to 1000 >> if activecell.Arowchk ="" then Selection.Delete Shift:=xlUp >> end if >> >> Please advise. >> >> >> >> >> >> -- >> -- >> FORUM RULES (986+ members already BANNED for violation) >> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >> will not get quick attention or may not be answered. >> >> 2) Don't post a question in the thread of another member. >> >> 3) Don't post questions regarding breaking or bypassing any security >> measure. >> >> 4) Acknowledge the responses you receive, good or bad. >> >> 5) Cross-promotion of, or links to, forums competitive to this forum in >> signatures are prohibited. >> >> NOTE : Don't ever post personal or confidential data in a workbook. Forum >> owners and members are not responsible for any loss. >> >> >> ------------------------------------------------------------------------------------------------------ >> To post to this group, send email to excel-macros@googlegroups.com >> >> To unsubscribe, send a blank email to >> excel-macros+unsubscr...@googlegroups.com >> >> >> > > > > -- > With Regards, > Noorain Ansari > http:// > <http://www.noorainansari.com/>noorainansari.com<http://www.noorainansari.com/> > http:// <http://www.excelvbaclinic.blogspot.com/> > excelvbaclinic.blogspot.com <http://www.excelvbaclinic.blogspot.com/> > http://accesssqclinic.blogspot.in/ > > > > > -- > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > To unsubscribe, send a blank email to > excel-macros+unsubscr...@googlegroups.com > > > -- Thanks & Regards, Gawli Anil Narayan Software Developer, Abacus Software Services Pvt Ltd -- -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com