Sorry, I already found the solution (source: https://msdn.microsoft.com/en-us/library/office/ff823060.aspx): *Create a WorkSHEET Specific named range*
1. Select the range you want to name. 2. Click on the "Formulas" tab on the Excel Ribbon at the top of the window. 3. Click "Define Name" button in the Formula tab. 4. In the "New Name" dialogue box, under the field "Scope", choose the specific worksheet that the range you want to define is located (such as, "Sheet1"). This makes the name specific to this worksheet. If you choose "Workbook" then it will be a WorkBOOK name). Thank you for your solution, works fine! Op dinsdag 6 juni 2017 21:07:08 UTC+2 schreef Frits S: > > Thank you for your solution. > How can I name the range: "...in a column and name the range "Input""? > > Op dinsdag 6 juni 2017 18:25:43 UTC+2 schreef Paul Schreiner: >> >> 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 F5 >> and 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 Sub >> *Paul* >> ----------------------------------------- >> >> >> >> >> >> >> >> *“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.sc...@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...@googlegroups.com. >> To post to this group, send email to excel-...@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.