LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calculate, Copy, Paste

Sub copyvalue()
Dim rng as Range, i as Long, j as Long, rng as Range
Dim cell as Range, n as Long, v(1 to 5) as String
Dim s as Long
s = Applicaton.Calculation
Application.Calculation = xlManual
n = 25
set rng = Range("A1:E1")
v(1) = "AA" : v(2) = "BB" : v(3) = "CC"
v(4) = "DD" : v(5) = "EE"
for i = 1 to n
Application.Calculate
j = 0
for each cell in rng
j = j + 1
Cells(i,v(j)).Value = cell.Value
Next
Next
Application.Calculate = s
End Sub

--
Regards,
Tom Ogilvy


wrote in message
ups.com...

Thanks again tom. Works great!!! Now if you could help me one more
time. Working on the same concept except I want to calculate Rand() and
then copy and paste 5 numbers example; A1, B1, C1, D1, E1 then paste to
AA1,BB1,CC1,DD1,EE1 then repeat the same procedure 25 times. Again let
me thank you as well as others who shear their knowledge with the rest
of us



 
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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy; Paste; Paste Special are disabled Mack Neff[_3_] Excel Discussion (Misc queries) 0 April 28th 08 06:29 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
Copy and Paste macro needs to paste to a changing cell reference loulou Excel Programming 0 February 24th 05 10:29 AM
Macro to Copy/Paste then Paste to Next Line tomkarakowski Excel Programming 1 May 28th 04 01:19 AM


All times are GMT +1. The time now is 12:40 AM.

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

About Us

"It's about Microsoft Excel"