PC Review


Reply
Thread Tools Rate Thread

any clue why this won't work?

 
 
=?Utf-8?B?Q2FsbGU=?=
Guest
Posts: n/a
 
      18th Oct 2006
Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
0)).EntireRow.Value.Copy _
Destination:=Worksheets(1).Range("A16")
 
Reply With Quote
 
 
 
 
Snake Plissken
Guest
Posts: n/a
 
      18th Oct 2006
any error report ?


 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      18th Oct 2006
You can't do .entirerow.value.copy
You can do .entirerow.copy and then paste special values. So something like
this perhaps...

Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
0)).EntireRow.Copy
Worksheets(1).Range("A16").pastespecial(xlpastevalues)
Application.cutcopymode = false


--
HTH...

Jim Thomlinson


"Calle" wrote:

> Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
> 0)).EntireRow.Value.Copy _
> Destination:=Worksheets(1).Range("A16")

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      18th Oct 2006
NextEmpty could be in row one and Offset(-1,0) gives you row zero.
Also, it is not possible to paste the contents of an entire row
into another row starting at column 16. ( try A1 not A16)

Following these guidelines helps us all out...
http://www.cpearson.com/excel/newposte.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Calle" <(E-Mail Removed)>
wrote in message
Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
0)).EntireRow.Value.Copy _
Destination:=Worksheets(1).Range("A16")
 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      18th Oct 2006
Isn't that Row 16 which is perfectly acceptable?
--
HTH...

Jim Thomlinson


"Jim Cone" wrote:

> NextEmpty could be in row one and Offset(-1,0) gives you row zero.
> Also, it is not possible to paste the contents of an entire row
> into another row starting at column 16. ( try A1 not A16)
>
> Following these guidelines helps us all out...
> http://www.cpearson.com/excel/newposte.htm
> --
> Jim Cone
> San Francisco, USA
> http://www.realezsites.com/bus/primitivesoftware
>
>
>
> "Calle" <(E-Mail Removed)>
> wrote in message
> Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
> 0)).EntireRow.Value.Copy _
> Destination:=Worksheets(1).Range("A16")
>

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      18th Oct 2006
Jim,
Depends on which universe you are in. <g>
Thanks for catching that.
Sincerely,
Jim Cone


"Jim Thomlinson"
<James_Thomlinson@owfg-Re-Move-This-.com>
wrote in message
Isn't that Row 16 which is perfectly acceptable?
--
HTH...

Jim Thomlinson


"Jim Cone" wrote:
> NextEmpty could be in row one and Offset(-1,0) gives you row zero.
> Also, it is not possible to paste the contents of an entire row
> into another row starting at column 16. ( try A1 not A16)
>
> Following these guidelines helps us all out...
> http://www.cpearson.com/excel/newposte.htm
> --
> Jim Cone
> San Francisco, USA
> http://www.realezsites.com/bus/primitivesoftware
>
>
>
> "Calle" <(E-Mail Removed)>
> wrote in message
> Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
> 0)).EntireRow.Value.Copy _
> Destination:=Worksheets(1).Range("A16")
>

 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      19th Oct 2006
Here is the original code:

Sub testme()

Dim myCell As Range
Dim NextEmpty As Range

Set myCell = ActiveSheet.Range("a16")
Do
If myCell.Value = "" Then
Set NextEmpty = myCell
Exit Do
Else
Set myCell = myCell.Offset(1, 0)
End If
Loop
Range("A16", NextEmpty.offset(-1,0).EntireRow.copy _
Destination:=Worksheets(2).Range("A1")
End Sub


it didn't have a value in the last line.

--
Regards,
Tom Ogilvy


"Calle" <(E-Mail Removed)> wrote in message
news:39B62A85-D160-48A5-87C5-(E-Mail Removed)...
> Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
> 0)).EntireRow.Value.Copy _
> Destination:=Worksheets(1).Range("A16")



 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      19th Oct 2006
I have standing reservations in that universe... :-)
--
HTH...

Jim Thomlinson


"Jim Cone" wrote:

> Jim,
> Depends on which universe you are in. <g>
> Thanks for catching that.
> Sincerely,
> Jim Cone
>
>
> "Jim Thomlinson"
> <James_Thomlinson@owfg-Re-Move-This-.com>
> wrote in message
> Isn't that Row 16 which is perfectly acceptable?
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Jim Cone" wrote:
> > NextEmpty could be in row one and Offset(-1,0) gives you row zero.
> > Also, it is not possible to paste the contents of an entire row
> > into another row starting at column 16. ( try A1 not A16)
> >
> > Following these guidelines helps us all out...
> > http://www.cpearson.com/excel/newposte.htm
> > --
> > Jim Cone
> > San Francisco, USA
> > http://www.realezsites.com/bus/primitivesoftware
> >
> >
> >
> > "Calle" <(E-Mail Removed)>
> > wrote in message
> > Worksheets("resultatpivot3").Range("A16", NextEmpty.Offset(-1,
> > 0)).EntireRow.Value.Copy _
> > Destination:=Worksheets(1).Range("A16")
> >

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no clue can't get this to work matt Windows Vista Mail 1 13th Nov 2009 06:02 AM
Re: i have no clue. DDW Windows Vista Installation 0 20th Mar 2009 11:44 PM
Help, Code won't work and I have no clue =?Utf-8?B?TG9zdCBhbmQgTG9va2luZyBmb3IgSGVscA==?= Microsoft Excel Programming 3 16th May 2006 02:00 PM
any clue would work =?Utf-8?B?S3lm?= Windows XP General 8 8th Dec 2005 06:30 PM
no clue Kyle Windows Networking 1 7th Jul 2003 03:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:22 PM.