Re: $$Excel-Macros$$ simple macro??
There are several ways to name a range.Using a version similar to Excel 2010: First: When you select a single Cell, there is a box in the menu/icon area that shows the cell address:(to the left of the box that shows the cell contents)Like: A2 highlight the range (say: A2 through A101)then, in that address box, type the name of the range. The second way is to go to the Formula menu/tab and look for the Defined Names section.You can use the Wizards in the Name Manager or the Defined Name selection to define range names. Note: You can associate a range name to a single worksheet or the entire workbook.You can have only one range named any specific name if it is associated to the workbook.But each sheet can have a range associated with the same name.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 3:07 PM, Frits Swrote: 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 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 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
Re: $$Excel-Macros$$ simple macro??
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 Swrote: >> >> >> 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
Re: $$Excel-Macros$$ simple macro??
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> 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.
Re: $$Excel-Macros$$ simple macro??
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 Swrote: 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.
$$Excel-Macros$$ simple macro??
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.
Re: $$Excel-Macros$$ simple Macro need -SAP data
hi noor can you help me Regards chandru On Tue, Jan 17, 2012 at 12:17 PM, chandra sekaran duraichan...@gmail.comwrote: Dear all can you please help me . which i attached excell sheet having two sheets one SAP sheet and output we need product wise sum Qty and Value if you suggest simple macro Thanks Chandru -- FORUM RULES (986+ members already BANNED for violation) 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) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 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) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
Re: $$Excel-Macros$$ simple Macro need -SAP data
This formula works if you do not have duplicate product numbers not in the block such as '=SUMPRODUCT(--(sap!$C$8:$C$22=C9)*sap!$E$8:$E$22) 320013 SPENT HCL SOLUTION 27% 320013 H 320013 WIP 08.2011 / H Don Guillett SalesAid Software dguille...@gmail.com From: chandra sekaran Sent: Tuesday, January 17, 2012 12:47 AM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ simple Macro need -SAP data Dear all can you please help me . which i attached excell sheet having two sheets one SAP sheet and output we need product wise sum Qty and Value if you suggest simple macro Thanks Chandru -- FORUM RULES (986+ members already BANNED for violation) 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) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 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) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
$$Excel-Macros$$ simple Macro need -SAP data
Dear all can you please help me . which i attached excell sheet having two sheets one SAP sheet and output we need product wise sum Qty and Value if you suggest simple macro Thanks Chandru -- FORUM RULES (986+ members already BANNED for violation) 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) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com sap.XLS Description: MS-Excel spreadsheet