Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default copy a result


Zaahir wrote:
hi

Range("c1").Select
Selection.CurrentRegion.Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=R[-1]C+1"

i use the above code to generate the next entry number............
the above works fine but i need i need to copy the result to a different
cell but when executing the copy and paste code it paste an error msg...

how can i mod the code so that i actually paste the value and not the error
msg?

thanx in advance!!!!


You don't say where you're pasting to, so I'll say Range("G1")...

Range("c1").Select
Selection.CurrentRegion.Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=R[-1]C+1"
Range("G1").Value = ActiveCell.Value

Ken Johnson

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
copy result from a .xls file to another without macro ina Excel Programming 0 May 15th 06 09:43 AM
copy the result of a subtotal Angela New Users to Excel 1 March 8th 06 08:00 PM
How can I copy a row as result of an IF function jantoni Excel Worksheet Functions 2 August 17th 05 06:10 PM
How do I copy a result without copying the formula? riffmastr7 Excel Discussion (Misc queries) 1 February 2nd 05 07:10 PM
copy result to a specific location Newbie Excel Programming 2 January 26th 04 02:19 PM


All times are GMT +1. The time now is 09:25 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"