+ Reply to Thread
Results 1 to 7 of 7

Macro required to delete row numbers specified on another worksheet

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro required to delete row numbers specified on another worksheet

    Hi,

    Hoping someone can help me please to improve a macro I currently have. At the moment, my macro uses this code:

    Please Login or Register  to view this content.
    Fairly simple, but the problem is that the rows that need to be deleted may change over time. To get around this, I've got a seperate sheet in my workbook called 'macro controls'. In this sheet, cell C3 has the value 1, and cell E3 has the value 9.

    what I want my macro to do, is to check the values in these 2 cells, and then delete these rows in the sheet called 'sandpit'.

    Any help please?

    Thanks a bunch.

  2. #2
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Macro required to delete row numbers specified on another worksheet

    Hope this helps...
    I considered sheet which contains value in C3 and E3 as Sheet2

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Macro required to delete row numbers specified on another worksheet

    ......................
    Last edited by abduljaleel.mca; 04-30-2013 at 10:54 AM. Reason: Posted twice....

  4. #4
    Registered User
    Join Date
    04-30-2013
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro required to delete row numbers specified on another worksheet

    Thanks Abdul. I think that's nearly there, but the macro above only deletes cells A1-I1 (because value V1 = 1 and V2 = 9). What I actually want it to do is delete rows 1-9 entirely.

  5. #5
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Macro required to delete row numbers specified on another worksheet

    Use this....


    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-30-2013
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro required to delete row numbers specified on another worksheet

    Perfect. Thank you so much!

  7. #7
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Macro required to delete row numbers specified on another worksheet

    Thanks for your feedback....Please mark this thread as Solved....


    Abdul-

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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