Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy from previous page
I have a workbook with 20 sheets and I need to write a macro that will copy a
range from the previous page using a command button. Example: CmdButton1= copy range Sheet1!A1:B5 into Sheet2!A1:B5, Cmd Button2= copy Sheet2!A1:B5 into Sheet3!A1:B5, etc. I was writing an individual macro for each sheet but there must be a more efficient way to do it. Is there a "copy previous page range" into ActiveSheet? Thanks a million for any help you can give me. Regards, |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy from previous page
activesheet.previous.Range("A1:b5").Copy ActiveSheet.Range("A1:B5")
-- Regards, Tom Ogilvy "Myriam" wrote in message ... I have a workbook with 20 sheets and I need to write a macro that will copy a range from the previous page using a command button. Example: CmdButton1= copy range Sheet1!A1:B5 into Sheet2!A1:B5, Cmd Button2= copy Sheet2!A1:B5 into Sheet3!A1:B5, etc. I was writing an individual macro for each sheet but there must be a more efficient way to do it. Is there a "copy previous page range" into ActiveSheet? Thanks a million for any help you can give me. Regards, |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
copy from previous page
Thanks!
"Tom Ogilvy" wrote: activesheet.previous.Range("A1:b5").Copy ActiveSheet.Range("A1:B5") -- Regards, Tom Ogilvy "Myriam" wrote in message ... I have a workbook with 20 sheets and I need to write a macro that will copy a range from the previous page using a command button. Example: CmdButton1= copy range Sheet1!A1:B5 into Sheet2!A1:B5, Cmd Button2= copy Sheet2!A1:B5 into Sheet3!A1:B5, etc. I was writing an individual macro for each sheet but there must be a more efficient way to do it. Is there a "copy previous page range" into ActiveSheet? Thanks a million for any help you can give me. Regards, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Borders from previous page showing up at top of new page | Excel Discussion (Misc queries) | |||
Reference previous page | Excel Worksheet Functions | |||
continue page numbers from previous worksheet | Excel Discussion (Misc queries) | |||
Running Total from previous page | Excel Worksheet Functions | |||
Accessing previous page | Excel Programming |