Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macros I think
I am trying to put together a function to help automate a really long
process. I need to copy a number from one cell of one workbook to multiple worksheets of another workbook. The problem is that the cell I need to paste to is different in each worksheet. In the first destination worksheet it might need to be pasted to b28 and in the next worksheet it would need to be pasted to b31 etc. It would be the next blank cell in the column. So if the last data entered in one worksheet is in b28 I will need the new data pasted to b29. I hope I have explained this well. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macros I think
something like this.
for each ws in sheets lr=ws.cells(rows.count,"b").end(xlup).row+1 copy range("sourcerange") ws.cells(lr,2) next -- Don Guillett Microsoft MVP Excel SalesAid Software "Rick" wrote in message ... I am trying to put together a function to help automate a really long process. I need to copy a number from one cell of one workbook to multiple worksheets of another workbook. The problem is that the cell I need to paste to is different in each worksheet. In the first destination worksheet it might need to be pasted to b28 and in the next worksheet it would need to be pasted to b31 etc. It would be the next blank cell in the column. So if the last data entered in one worksheet is in b28 I will need the new data pasted to b29. I hope I have explained this well. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macros - copying macros from one computer to another | Excel Discussion (Misc queries) | |||
"openinf file..."ENABLE MACROS...DISABLE MACROS" | Excel Discussion (Misc queries) | |||
Training: More on how to use macros in Excel: Recording Macros | Excel Worksheet Functions | |||
Macros 101, | Excel Discussion (Misc queries) | |||
Need help with macros | Excel Discussion (Misc queries) |