You're saying that F77 is a calculation that uses the value of F5.You want to 
change F5 from 1 to 100 and do WHAT with the resulting value in F77?
Are you saying that you want to simply put 1-100 in one column and then show in 
an adjacent column the result when this number is put into F5?
Is the formula in F77 complex?
Yes, this could be done as you ask.
If you put the starting values (1-100) in a column and name the range 
"Input",then this macro will cycle through the starting values, put them each 
in cell F5and then copy the value from F77 into the adjacent cell:
Sub SaveCalc()
    Dim Rng As Range
    For Each Rng In Range("Input")
        If (Rng.Value & "X" <> "X") Then
            Range("F5").Value = Rng.Value
            Rng.Offset(0, 1).Value = Range("F77").Value
        End If
    Next Rng
End SubPaul-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
----------------------------------------- 

    On Tuesday, June 6, 2017 11:48 AM, Frits S <frits.schulthe...@gmail.com> 
wrote:
 

 I need a macro for a simple question:
In my Excel sheet I have a value in cell F5 which gives a result in cell 
F77.Now I want to calculate each value in F5 (from 1 to 100) to the associated 
value in cell F77 in two new columns: value F5=1->value F77=..., value 
F5=2->value F77=... (etc.)
Is this possible in VBA?

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to