+ Reply to Thread
Results 1 to 7 of 7

Deleted row, now it is giving problems with merged cells

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    Deleted row, now it is giving problems with merged cells

    Hi,

    I deleted a row, how is it possible to get the row back?

    the rows are now:

    65
    66
    68
    69
    70

    67 is missing. I have merged cells in my sheet. So it is really annoying if I am copying.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Deleted row, now it is giving problems with merged cells

    Maybe You have hidden this row by mistake? Try this

    Sub aa()
    Rows.Hidden = False
    End Sub
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    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,252

    Re: Deleted row, now it is giving problems with merged cells

    What can I say? Don't ever used merged cells.

    If you have not saved or closed the workbook, you might be able to use Undo.

    Failing that, you will probably need to re-constitute the row, perhaps from a backup or saved copy.

    I tend to make regular copies of anything I am working on. Do you?

    Regards, TMS
    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


  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,252

    Re: Deleted row, now it is giving problems with merged cells

    @tom: why a macro? It would be just as easy to do that manually. Easier, I suspect.

  5. #5
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Deleted row, now it is giving problems with merged cells

    @TMShucks
    to unhide all rows beside I like macros very much

  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,252

    Re: Deleted row, now it is giving problems with merged cells

    Fair enough ... but you could just type rows.hidden=false in the Immediate window.

    Or click on the intersection of the row and column headers to select all and choose Format | Hide & Unhide | Unhide rows

    Seems a macro is a bit of overkill and then you'd have to remove the module if there was no other need for macros in order to save the file (given the profile is 2007).

    But, whatever, I won't lose sleep if it does the job.

  7. #7
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Deleted row, now it is giving problems with merged cells

    @TMShucks
    I know I know
    I have to tell You that my adventure with VBA started from such tiny code Maybe someone else will infect with VBA like me
    regards and good luck

+ 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