ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   2 questions, copying data from sheet to sheet and assigning macro (https://www.excelbanter.com/excel-worksheet-functions/8025-2-questions-copying-data-sheet-sheet-assigning-macro.html)

Boris

2 questions, copying data from sheet to sheet and assigning macro
 
I need a bit of help. I'm tying to copy a range of cells from one sheet in
my workbook and add it to sheet 2 in the same workbook at the bottom. I'm
using this as a database for simplicity's sake.

2. after assigning this macro to a button, can I password protect the button
itself to prevent what I call IDIOT-isms.... this sheet will be shared by
quite a few people but only 2 may update using the afore-mentioned macro.
here is what i have so far.... but it only copies to a set range and does not
append.

Range("A2:K2").Select
Selection.Copy
Sheets("sheet2").Select
Range("A3509:K3509").Select
ActiveSheet.Paste
Selection.Interior.ColorIndex = xlNone
Sheets("Sheet1").Select
Range("K2:A2").Select
ActiveCell.FormulaR1C1 = ""


All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com