Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Excel 2003 VBA Programmer's Reference
This is the forum to discuss the Wrox book Excel 2003 VBA Programmer's Reference by Paul T. Kimmel, Stephen Bullen, John Green, Rob Bovey, Robert Rosenberg, Brian Patterson; ISBN: 9780764556609
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Excel 2003 VBA Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 26th, 2014, 07:50 AM
Authorized User
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2006
Location: Stone, California, Malaysia.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default EntireRow.Delete

Evening all,

When compiled range below are not executed. Can somebody help..

Set a1range = Sheets("Sheets01").Range("A3:AD" & Lastrow)

but Ok for :-

Set bRange = Sheets("Sheets02").Range("A2:AD" & Lastrow)

Below was my full coding, try it you will see what I mean..

Sub DeleteR(0

Dim Lastrow As Integer
Dim aRange, bRange As Range

Lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row

set aRange = Sheets("Sheets01").Range("A2:AD" & Lastrow)
Set bRange = Sheets("Sheets02").Range("A2:AD" & Lastrow)

Set a1range = Sheets("Sheets01").Range("A3:AD" & Lastrow)
Set b1range = Sheets("Sheets02").Range("A3:AD" & Lastrow)



End Sub
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
php/mysql delete button and delete query dungey PHP Databases 17 April 11th, 2009 12:24 PM
entireRow delete problem cronid Excel VBA 2 March 4th, 2008 08:20 PM
how to delete a row when click delete hyperlink naveenkumarg1 Pro JSP 1 August 16th, 2004 01:29 AM
delete mussavcom Javascript 1 July 10th, 2003 03:01 AM

All times are GMT -4. The time now is 05:17 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.