Copy and paste dont work...

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

Copy and paste dont work...

Post by sal21 »

Code: Select all

...
If Not K = UBound(strDBRows, 2) Then
            WSREPO.Range("A8:N8").Copy Destination:=WSTEMP.Range("A" & RIGA2 + 1)
            WSTEMP.Range("A" & RIGA2 + 1).RowHeight = WSTEMP.Range("A5").RowHeight
            RIGA2 = RIGA2 + 1
        End If
...
why the line WSREPO.Range("A8:N8").Copy dont copy the last cell (in grey N8 cell)!!!!
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78568
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Copy and paste dont work...

Post by HansV »

The workbook that you attached is empty. so I have no idea...
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Copy and paste dont work...

Post by Rudi »

Stripping all the variables out and using just the code below does work, and it pastes the last grey cell N8.

Code: Select all

Range("A8:N8").Copy Destination:=Range("A" & 10 + 1)
Range("A" & 10 + 1).RowHeight = Range("A5").RowHeight
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.