ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pasted this morning, but not now (https://www.excelbanter.com/excel-programming/428313-pasted-morning-but-not-now.html)

CLR

Pasted this morning, but not now
 
Hi All....
This morning I ran the macro containing the below code, 130 times and it
functioned perfectly.....now it fails every time with a "cannot paste"
error......I havent changed the macro.......any ideas what might could be
wrong?

Range("A1:P42").Select
Range("p42").Activate
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Workbooks.Add
ActiveWindow.Zoom = 50
ActiveSheet.Pictures.Paste.Select

TIA for any help
Vaya con Dios,
Chuck, CABGx3

CLR

Pasted this morning, but not now
 
It must be a "Windows thing"......rebooted and all is well.

Vaya con Dios,
Chuck, CABGx3





"CLR" wrote:

Hi All....
This morning I ran the macro containing the below code, 130 times and it
functioned perfectly.....now it fails every time with a "cannot paste"
error......I havent changed the macro.......any ideas what might could be
wrong?

Range("A1:P42").Select
Range("p42").Activate
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Workbooks.Add
ActiveWindow.Zoom = 50
ActiveSheet.Pictures.Paste.Select

TIA for any help
Vaya con Dios,
Chuck, CABGx3


CLR

Pasted this morning, but not now
 


"CLR" wrote:

Hi All....
This morning I ran the macro containing the below code, 130 times and it
functioned perfectly.....now it fails every time with a "cannot paste"
error......I havent changed the macro.......any ideas what might could be
wrong?

Range("A1:P42").Select
Range("p42").Activate
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Workbooks.Add
ActiveWindow.Zoom = 50
ActiveSheet.Pictures.Paste.Select

TIA for any help
Vaya con Dios,
Chuck, CABGx3



All times are GMT +1. The time now is 01:39 AM.

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