Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copying values not formulas

I have the following piece of code

Here.EntireRow.Copy Destination:=There

This copies the formulas that are in this row, I need to
know how to modify this code to copy values instead of
formulas.

Any help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying values not formulas

here = there

--
Regards,
Tom Ogilvy

"Joe M." wrote in message
...
I have the following piece of code

Here.EntireRow.Copy Destination:=There

This copies the formulas that are in this row, I need to
know how to modify this code to copy values instead of
formulas.

Any help?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copying values not formulas

Hi Tom, that will work for individual cells but I was
hoping for something that will allow me to copy the values
of an entire row at a time.
-----Original Message-----
here = there

--
Regards,
Tom Ogilvy

"Joe M." wrote in

message
...
I have the following piece of code

Here.EntireRow.Copy Destination:=There

This copies the formulas that are in this row, I need to
know how to modify this code to copy values instead of
formulas.

Any help?



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying values not formulas

It works for any contiuous range of cells (of the same shape / count)

Range(1:1).Value = Range("15:15").Value


or
Range("A1").Resize(range("15:15").Rows.count, _
range("15:15").Columns.count).Value = Range("15:15").Value

if you want to use a paradigm similar to a single cell destination.

--
Regards,
Tom Ogilvy



"Joe M." wrote in message
...
Hi Tom, that will work for individual cells but I was
hoping for something that will allow me to copy the values
of an entire row at a time.
-----Original Message-----
here = there

--
Regards,
Tom Ogilvy

"Joe M." wrote in

message
...
I have the following piece of code

Here.EntireRow.Copy Destination:=There

This copies the formulas that are in this row, I need to
know how to modify this code to copy values instead of
formulas.

Any help?



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying values not formulas

typo:

Range(1:1).Value = Range("15:15").Value

should be

Range("1:1").Value = Range("15:15").Value


or

Range("A1").EntireRow.Value = Range("A15").EntireRow.Value

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
It works for any contiuous range of cells (of the same shape / count)

Range(1:1).Value = Range("15:15").Value


or
Range("A1").Resize(range("15:15").Rows.count, _
range("15:15").Columns.count).Value = Range("15:15").Value

if you want to use a paradigm similar to a single cell destination.

--
Regards,
Tom Ogilvy



"Joe M." wrote in message
...
Hi Tom, that will work for individual cells but I was
hoping for something that will allow me to copy the values
of an entire row at a time.
-----Original Message-----
here = there

--
Regards,
Tom Ogilvy

"Joe M." wrote in

message
...
I have the following piece of code

Here.EntireRow.Copy Destination:=There

This copies the formulas that are in this row, I need to
know how to modify this code to copy values instead of
formulas.

Any help?


.







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copying values not formulas

Thanks Tom, that did the trick.

-----Original Message-----
typo:

Range(1:1).Value = Range("15:15").Value

should be

Range("1:1").Value = Range("15:15").Value


or

Range("A1").EntireRow.Value = Range("A15").EntireRow.Value

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
It works for any contiuous range of cells (of the same

shape / count)

Range(1:1).Value = Range("15:15").Value


or
Range("A1").Resize(range("15:15").Rows.count, _
range("15:15").Columns.count).Value = Range

("15:15").Value

if you want to use a paradigm similar to a single cell

destination.

--
Regards,
Tom Ogilvy



"Joe M." wrote in

message
...
Hi Tom, that will work for individual cells but I was
hoping for something that will allow me to copy the

values
of an entire row at a time.
-----Original Message-----
here = there

--
Regards,
Tom Ogilvy

"Joe M." wrote

in
message
...
I have the following piece of code

Here.EntireRow.Copy Destination:=There

This copies the formulas that are in this row, I

need to
know how to modify this code to copy values

instead of
formulas.

Any help?


.





.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying values/formulas from only visable lines when filters are o excelchallenged Excel Worksheet Functions 0 March 16th 10 05:08 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
Drop and drag is copying values instead of formulas joel1972 Excel Worksheet Functions 5 September 15th 06 11:01 PM
copying formulas and not values peets Excel Worksheet Functions 2 March 21st 06 08:43 PM
Why do formulas turn to values wen copying in Excel 2003... zyphyl Excel Worksheet Functions 1 November 6th 04 06:33 AM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"