+ Reply to Thread
Results 1 to 11 of 11

Removing Rows from one sheet to another (with freeze panes)

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Removing Rows from one sheet to another (with freeze panes)

    Hi,

    I once solved this problem, but when I solved it, I didn't have frozen panes involved in my sheet.

    I'm trying to use this code:

    Please Login or Register  to view this content.
    and I also have code that does the same thing, but searches for a 'y'
    Please Login or Register  to view this content.

    When I press this button, it removes everything from the table and pastes it into the other sheet with about 10 blank lines above the entires. Also, it messes with the frozen panes from the previous sheet (once frozen at row 9, press button, becomes frozen at row 6).

    I have attached my workbook

    the password, when prompted, is "MillSteel"

    Please Help!
    Attached Files Attached Files
    Last edited by emilyloz; 06-28-2013 at 08:42 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Removing Rows from one sheet to another (with freeze panes)

    The basic problem is that you are copying and pasting the rows across.
    You don't really need to do that - you can just transfer the values in something like the following form

    Please Login or Register  to view this content.
    followed by :
    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Removing Rows from one sheet to another (with freeze panes)

    Okay I tried that. and it's still doing the same thing.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Removing Rows from one sheet to another (with freeze panes)

    Actually, now its not even pasting the values anywhere?
    they're all gone.

  5. #5
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Removing Rows from one sheet to another (with freeze panes)

    Hi,

    check "UndoHistory_Click" in the appropriate sheet in the following file, you have to take case to place your data into the table "Table5", not below that: MillSteel-Maintenance.xlsm
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  6. #6
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Removing Rows from one sheet to another (with freeze panes)

    that's great that its working!! thanks

    can you explain what you mean by : "you have to take case to place your data into the table "Table5", not below that"

  7. #7
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Removing Rows from one sheet to another (with freeze panes)

    when I type 'n' and press undo history. the entries are rewriting the entries already listed in the current sheet.

    they're not adding to the list?

  8. #8
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Removing Rows from one sheet to another (with freeze panes)

    When there is a record with "n" in column G in the table of "History Maintenance" its copied to the next free row in "Current Maintenance". The last row is checked in column A, as you haven't entered any priority it will always be row 10 to paste the rows, with with column B is checked:
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Removing Rows from one sheet to another (with freeze panes)

    Great! thanks so much!

  10. #10
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Removing Rows from one sheet to another (with freeze panes)

    Ahh, sorry tehneXus.

    I changed that line of code and now its pasting the values in the B column. Everything is shifted to the right.

  11. #11
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Removing Rows from one sheet to another (with freeze panes)

    This time tested:
    Please Login or Register  to view this content.

+ 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