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: 1,670
Default Copy and Paste

John,
Your the best. Thank you. Can I ask you about another issue I have.
I will have a review sheet of the last four tests. I want the first test to
drop off everytime a new test is run and have it refresh it's self when I
start the program up in the morning.
Ie:
test
1
2
3
4

After fifth test it would look like this:
test
2
3
4
5

and so on

I thank you in advance for all your help.

Eric


"John Bundy" wrote:

Gotcha, in your examples they were whole numbers so i dimensioned them as
Longs, change them to doubles. (except test)

Dim numOne As Double
Dim numTwo As Double
Dim numThree As Double
Dim test As Long


--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Eric" wrote:

Hey John,

I was able to figure it out with one exception and that is that the numbers
are round up or down. I don't want them to round at all I want them to stay
exactly the same.
IE:
4.1 on "Main menu" is post on "JMF changes" as 4.0
0.4 is posted as 0.0
2.756 is posted as 3.00

Any solutions

"John Bundy" wrote:

Ok, I have the test piece down, where is the data to be copied stored at on
"Main Menu"? Is it in a particular cell, or row, or named range?
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Eric" wrote:

John,
I really appreciate this....The information is stored on "Main Menu" sheet
and in the range called tests. The information is also on the "Main Menu"
sheet but is transphered to the "JMF Change" sheet. Again Thank you Thank
you Thank you

Eric

"John Bundy" wrote:

Sometimes its hard to understand what folks want, i didn't see your other
posts so i don't know where test is stored or the 3 numbers but here is the
code. If you tell me the location of test# and where the info to be pasted
comes from i will modify it for you.

Sub main()
Dim numOne As Long
Dim numTwo As Long
Dim numThree As Long
Dim test As Long

test = "set value of test here or the location it is found"
numOne = "set value of numOne here or the location it is found"
numTwo = "set value of numTwo here or the location it is found"
numThree = "set value of numThree here or the location it is found"
For i = test To 400
Sheets("sheetname").Cells(i, 1) = numOne
Sheets("sheetname").Cells(i, 2) = numTwo
Sheets("sheetname").Cells(i, 3) = numThree
Next
End Sub
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Eric" wrote:

Hello all,

If I want to copy values from row 1 and paste it into any row (this number
depends on a variable called tests. However many tests I have run I need it
to count down to that row and paste the information from row 1 without
deleting anything above it.
ie:
Info to be pasted 4 5 6 Test=5

Row 1 1 2 3
row 2 1 2 3
Row3 1 2 3
Row4 1 2 3
Row5 4 5 6 this is row one information
Row6 4 5 6

The row numbers correspondes to the test number. Every row after row 5 will
be the same as row 5. This would go on until row 400.

So far no one has been able to help me and I have asked this questions 3
different ways. Does this make any sense? Please anyone help me.......

 
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
Automating copy/paste/paste special when row references change Carl LaFong Excel Programming 4 October 8th 07 06:10 AM
help w/ generic copy & paste/paste special routine DavidH[_2_] Excel Programming 5 January 23rd 06 03:58 AM
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


All times are GMT +1. The time now is 06:52 PM.

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"