+ Reply to Thread
Results 1 to 3 of 3

Trying to select a range prior to deleting it so i can verify correct range removed

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Trying to select a range prior to deleting it so i can verify correct range removed

    I am enclosing a file.

    In this file i am trying to delete certain rows. however, i wanted to see what rows i was deleting just before the delete so i could verify that things are working correctly. I would then remove the selection and jus tdo the the delete. But for some reason i get a runtime error when i run the enclosed file and it stops on the line where i am trying to select the row.
    Attached Files Attached Files
    Last edited by welchs101; 07-13-2011 at 10:10 PM.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Trying to select a range prior to deleting it so i can verify correct range remov

    You need to activate the sheet (in this case Test2) before you can activate a range on the sheet.

    This:

    Please Login or Register  to view this content.
    (line 127)

    needs to have this in front of it:

    Please Login or Register  to view this content.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Trying to select a range prior to deleting it so i can verify correct range remov

    exactly what i was looking for.

    thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1