Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can't copy ActiveSheet to clipboard
Shouldn't this code create a new worksheet from the active one?
It does create a new sheet, but just copies the current clipboard to it. ActiveSheet.Select ActiveWorkbook.Sheets.Add After:=Worksheets(1) ActiveWorkbook.Worksheets(2).Paste Thanks, Peter |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can't copy ActiveSheet to clipboard
Hi Peter,
To add a copy of the active sheet, try: Sub Tester() ActiveSheet.Copy After:=Worksheets(1) End Sub --- Regards, Norman "Peter Chatterton" wrote in message ... Shouldn't this code create a new worksheet from the active one? It does create a new sheet, but just copies the current clipboard to it. ActiveSheet.Select ActiveWorkbook.Sheets.Add After:=Worksheets(1) ActiveWorkbook.Worksheets(2).Paste Thanks, Peter |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can't copy ActiveSheet to clipboard
Thanks a lot Norman.
So why doesn't ActiveSheet.Select put anything in the clipboard? Peter. "Norman Jones" wrote in message ... Hi Peter, To add a copy of the active sheet, try: Sub Tester() ActiveSheet.Copy After:=Worksheets(1) End Sub --- Regards, Norman "Peter Chatterton" wrote in message ... Shouldn't this code create a new worksheet from the active one? It does create a new sheet, but just copies the current clipboard to it. ActiveSheet.Select ActiveWorkbook.Sheets.Add After:=Worksheets(1) ActiveWorkbook.Worksheets(2).Paste Thanks, Peter |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can't copy ActiveSheet to clipboard
Hi Peter,
So why doesn't ActiveSheet.Select put anything in the clipboard? This command selects the activesheet (which is already selected); it includes no copy instruction. --- Regards, Norman "Peter Chatterton" wrote in message ... Thanks a lot Norman. So why doesn't ActiveSheet.Select put anything in the clipboard? Peter. "Norman Jones" wrote in message ... Hi Peter, To add a copy of the active sheet, try: Sub Tester() ActiveSheet.Copy After:=Worksheets(1) End Sub --- Regards, Norman "Peter Chatterton" wrote in message ... Shouldn't this code create a new worksheet from the active one? It does create a new sheet, but just copies the current clipboard to it. ActiveSheet.Select ActiveWorkbook.Sheets.Add After:=Worksheets(1) ActiveWorkbook.Worksheets(2).Paste Thanks, Peter |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't copy without clipboard open | Excel Discussion (Misc queries) | |||
VBA execution stops at ActiveSheet.Copy -- but only sometimes! | Excel Programming | |||
ActiveSheet.Copy | Excel Programming | |||
How to copy text from a TextBox in a ActiveSheet to a variable | Excel Programming | |||
How to copy text from a TextBox in a ActiveSheet to a variable | Excel Programming |