ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Visual Basic Macro (https://www.excelbanter.com/excel-discussion-misc-queries/2635-visual-basic-macro.html)

negzel

Visual Basic Macro
 
Why is this programing not working? it gets stuck selecting the cells to
paste. The reason I am copying and pasteing then coping and pasteing values
it because I am pasteing into a sheet with merged cells.

Sheets("Daily").Select
Range("A9:P63").Select
Selection.Copy
Sheets("email").Select
Range("A9:P63").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False


KL

Hi negzel,

Have you considered the following?

Sheets("email").Range("A9:P63").Value = _
Sheets("Daily").Range("A9:P63").Value

Regards,
KL
(XL 97, 2000, 2002)

"negzel" wrote in message
...
Why is this programing not working? it gets stuck selecting the cells to
paste. The reason I am copying and pasteing then coping and pasteing
values
it because I am pasteing into a sheet with merged cells.

Sheets("Daily").Select
Range("A9:P63").Select
Selection.Copy
Sheets("email").Select
Range("A9:P63").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False





All times are GMT +1. The time now is 03:09 PM.

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