#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Copy value

Which command is copy the cell value instead of the formula?

Thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Copy value

Jimmy

Something like this..........

ActiveSheet.Range("B2").Resize(10, 10).Value = _
Worksheets("Sheet2").Range("A1:J10").Value

Or more simply.........

Range("B2").Value = _
Range("A1").Value

which bypasses using the Clipboard (and is analogous to Paste
Special/Values)


Gord Dibben MS Excel MVP


On Sat, 3 Mar 2007 03:53:54 +0800, "jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Copy value

Thank You..
One more question, How to set the display to a specific sheet cell where
outside the screen when the sheet activate? e.g cell AX100....

"Gord Dibben" <gorddibbATshawDOTca
...
Jimmy

Something like this..........

ActiveSheet.Range("B2").Resize(10, 10).Value = _
Worksheets("Sheet2").Range("A1:J10").Value

Or more simply.........

Range("B2").Value = _
Range("A1").Value

which bypasses using the Clipboard (and is analogous to Paste
Special/Values)


Gord Dibben MS Excel MVP


On Sat, 3 Mar 2007 03:53:54 +0800, "jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Copy value

Jimmy

Worksheet event code.

Private Sub Worksheet_Activate()
Application.Goto Reference:=Range("AX100"), Scroll:=True
End Sub

Right-click on the sheet tab and "View Code"

Copy/paste into that sheet module.


Gord Dibben MS Excel MVP

On Sat, 3 Mar 2007 05:41:04 +0800, "jimmy" wrote:

Thank You..
One more question, How to set the display to a specific sheet cell where
outside the screen when the sheet activate? e.g cell AX100....

"Gord Dibben" <gorddibbATshawDOTca
m...
Jimmy

Something like this..........

ActiveSheet.Range("B2").Resize(10, 10).Value = _
Worksheets("Sheet2").Range("A1:J10").Value

Or more simply.........

Range("B2").Value = _
Range("A1").Value

which bypasses using the Clipboard (and is analogous to Paste
Special/Values)


Gord Dibben MS Excel MVP


On Sat, 3 Mar 2007 03:53:54 +0800, "jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Copy value

If all you want is the value and not the formula then you don't need to copy
at all...

Range("A1").Value = Range("B1").Value

Range("A2:A10").Value = Range("B2:B10").Value

--
HTH...

Jim Thomlinson


"jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Copy value

You received two excellent answers that avoid using the clipboard. If you
actually want to do a copy and paste

worksheets("sheet1").Range("A1").copy

Worksheets("sheet2").Range("B9").PasteSpecial xlValues

(done in two separate commands).

--
Regards,
Tom Ogilvy


"jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Copy value

Got it....thank you

"Gord Dibben" <gorddibbATshawDOTca
...
Jimmy

Worksheet event code.

Private Sub Worksheet_Activate()
Application.Goto Reference:=Range("AX100"), Scroll:=True
End Sub

Right-click on the sheet tab and "View Code"

Copy/paste into that sheet module.


Gord Dibben MS Excel MVP

On Sat, 3 Mar 2007 05:41:04 +0800, "jimmy" wrote:

Thank You..
One more question, How to set the display to a specific sheet cell where
outside the screen when the sheet activate? e.g cell AX100....

"Gord Dibben" <gorddibbATshawDOTca
om...
Jimmy

Something like this..........

ActiveSheet.Range("B2").Resize(10, 10).Value = _
Worksheets("Sheet2").Range("A1:J10").Value

Or more simply.........

Range("B2").Value = _
Range("A1").Value

which bypasses using the Clipboard (and is analogous to Paste
Special/Values)


Gord Dibben MS Excel MVP


On Sat, 3 Mar 2007 03:53:54 +0800, "jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Copy value

How about some separate cells to some sequence cells?
e.g from Sheet2 cells "A1", "B9", "C100" to Sheet1 cells D1 to D3 ?

"Jim Thomlinson" ...
If all you want is the value and not the formula then you don't need to
copy
at all...

Range("A1").Value = Range("B1").Value

Range("A2:A10").Value = Range("B2:B10").Value

--
HTH...

Jim Thomlinson


"jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you





  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy value

If you can do it manually, you can do it with the code I gave you.

--
Regards,
Tom Ogivly


"jimmy" wrote in message ...
How about some separate cells to some sequence cells?
e.g from Sheet2 cells "A1", "B9", "C100" to Sheet1 cells D1 to D3 ?

"Jim Thomlinson"
...
If all you want is the value and not the formula then you don't need to
copy
at all...

Range("A1").Value = Range("B1").Value

Range("A2:A10").Value = Range("B2:B10").Value

--
HTH...

Jim Thomlinson


"jimmy" wrote:

Which command is copy the cell value instead of the formula?

Thank you







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
A visual basic value copy BUG?? - accounting format has copy problem!! [email protected] Excel Programming 3 June 20th 06 04:42 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
copy formulas from a contiguous range to a safe place and copy them back later Lucas Budlong Excel Programming 2 February 22nd 06 08:26 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM


All times are GMT +1. The time now is 10:19 PM.

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"