+ Reply to Thread
Results 1 to 6 of 6

Define range and then unmerge/edit range

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    78

    Define range and then unmerge/edit range

    Hi all,

    I'm not sure how to write the syntax for a little bit of code i am trying to complete.

    Im not sure how to name a range that is ("A7:N"&lastrow),
    and then go through that range and:
    -unmerge all cells within the range
    -Look in column C and if it is blank then clear the column N value in the same row.
    -look in column A and if it is blank delete the entire row.

    I already have the variable lastrow defined so no need to define it in your replies

    Thanks for your help I've been trying to get this part for a while.
    Last edited by bruizer31; 06-01-2013 at 03:19 PM. Reason: adding info

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Define range and then unmerge/edit range

    Please Login or Register  to view this content.

    and

    Please Login or Register  to view this content.

    Regards, TMS
    Last edited by TMS; 06-01-2013 at 05:42 PM. Reason: Edit to code, second part
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    78

    Re: Define range and then unmerge/edit range

    Thank you, How do i include deleting the entire row if there is no value in column A within that range?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Define range and then unmerge/edit range

    OK, try this, all the requirements in one subroutine.

    Please Login or Register  to view this content.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    78

    Re: Define range and then unmerge/edit range

    Thanks for your help, that worked perfectly!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,099

    Re: Define range and then unmerge/edit range

    You're welcome. Thanks for the rep.

+ 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