LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Moving rows to 2nd tab when worksheet is protected

THANKS!! It all worked like a charm! You're a lifesaver! Thanks so much for
your help!!

Stacie

"sebastienm" wrote:

and one thing i forgot to say about sheet protection.
You can protect a sheet in UserInterface only mode. In this mode, the user
(as usual) cannot edit protected cells, but vba code can ! Very convenient,
huh!?!
The only inconvenient, the mode is not remembered when the book is closed,
so you have to reset it when the book opens in the Workbook_Open sub of the
ThisWorkbook module:
Assuming you password is "mypassword"

Worksheets("Tracking").Protect Password:="mypassword",
UserInterfaceOnly:=True

This option is available in XL2k and above. Not sure about XL97.

Sebastien

"sebastienm" wrote:

Hi,
To cut and paste the current row to A4:
Private Sub MoveRow_Click()
ActiveCell.EntireRow.Cut Worksheets("Tracking").Rows(5)
ActiveCell.EntireRow.Delete
End Sub

There is no need of activating the second sheet .
Now to paste to the next available row in stead of A5 (assuming column A is
used to determine which is the next available row), still feasuble in a
single statement:

Private Sub MoveRow_Click()
ActiveCell.EntireRow.Cut
Worksheets("Tracking").Range("A65536").End(xlUp).O ffset(1,0)
ActiveCell.EntireRow.Delete
End Sub

I hope this helps,
Sebastienm

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MACRO for moving rows from one worksheet to another Stacey Excel Discussion (Misc queries) 3 January 1st 10 12:11 AM
In Excel, how do I add more rows to the worksheet? Tried moving . kanejo New Users to Excel 7 April 12th 08 09:00 PM
Using Grouped Rows in Protected Worksheet apr Excel Discussion (Misc queries) 3 April 1st 08 02:13 PM
INSERTING ROWS IN PROTECTED WORKSHEET TLAngelo Excel Discussion (Misc queries) 0 July 18th 06 06:18 PM
Insert Rows in Protected Worksheet Kim Via Excel Programming 2 July 22nd 04 08:48 PM


All times are GMT +1. The time now is 10:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"