+ Reply to Thread
Results 1 to 5 of 5

Automatically move an entire row form a protected sheet to different sheet

  1. #1
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Automatically move an entire row form a protected sheet to different sheet

    Hi guys!

    Currently I run the following code to delete rows from one sheet and paste it to another one.

    Please Login or Register  to view this content.
    Everything work just fine, but if I protect with password the original sheet, the code stops working. No error msgs, no nothing!
    Any help here?

    Very much obliged!

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatically move an entire row form a protected sheet to different sheet

    Maybe like so:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Automatically move an entire row form a protected sheet to different sheet

    Thank you so much JBeaucaire!

    The code works great in a new workbook and if the "Deleted" sheet is not protected.
    In my workbook, where I currently run another code, I had to make the following modifications, by adding your code:

    Please Login or Register  to view this content.
    Now, column for inserting "delete" is R:R and not M:M.
    Testing the code, I noticed that the row in the original sheet remains with all cells blank (no formulas, no data validation, no nothing). I'd like the code to move in the "Deleted" sheet all the inputs (values only, I don't mind) from the initial row, but keep all the formulas, data validation, conditional formatting, etc intact in the initial row. Do you think it's possible?

    Thanks again!
    Last edited by boboivan; 02-26-2014 at 08:51 AM.

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatically move an entire row form a protected sheet to different sheet

    Maybe something like this:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Automatically move an entire row form a protected sheet to different sheet

    Quote Originally Posted by JBeaucaire View Post
    Maybe something like this:

    Please Login or Register  to view this content.
    Yeah, works like a charm!
    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Move entire row of data from Sheet 1 to sheet 2 when completed date is entered.
    By jt7721 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:50 AM
  2. [SOLVED] Automatically move cells from sheet 1 to sheet 2
    By sealpino in forum Excel General
    Replies: 1
    Last Post: 12-03-2012, 06:20 PM
  3. Replies: 9
    Last Post: 11-26-2012, 06:07 PM
  4. Replies: 0
    Last Post: 09-17-2012, 06:28 AM
  5. [SOLVED] Move Entire Row to Different Sheet
    By jhamernik in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-30-2012, 02:36 PM

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