Could anyone be so kind as to tell me how =getCurrentStakesText(D1) in cells J1:K1 works.
https://docs.google.com/spreadsheets...py?usp=sharing
Please advice if your not able to open file from google sheets.
Could anyone be so kind as to tell me how =getCurrentStakesText(D1) in cells J1:K1 works.
https://docs.google.com/spreadsheets...py?usp=sharing
Please advice if your not able to open file from google sheets.
Last edited by west123; 05-16-2023 at 10:46 PM.
getCurrentStakesText is a function written in Apps Script, Google's macro language. You cannot automatically convert this to Excel. The code would have to be rewritten in VBA.
Here is the Apps Script code:
Please Login or Register to view this content.
6StringJazzer, Thank you very much for the answer.
Would need to get create another post to get the help, to be rewritten into VBA. cheers
Apps Script looks just like Java to me. This should do it but I haven't tested it yet.
Please Login or Register to view this content.
Is this still true? As MSFT tries to move away from VBA, I thought they had made it possible to write UDFs in other programming languages -- including Java and Javascript. If this is true, one of the big advantages I see is the possibility of writing a UDF in javascript like the OP has done and using it across different spreadsheet platforms, but I have not seen anyone anywhere try to explain how that would work.You cannot automatically convert this to Excel. The code would have to be rewritten in VBA.
Here's MSFT's introduction to UDFs using and Officescript add-in: https://learn.microsoft.com/en-us/of...tions-overview
Is there enough information in there to explain how to make an appscript/javascript udf available to Excel?
Originally Posted by shg
I don't have experience with using other languages for Excel macros but this looks promising. It does seem to require building an add-in.
This approach would obviate the need to rewrite the code but I don't know how you build in the API calls (like getRange), and it would still not be a one-click conversion process. I am wondering if it would be more straightforward for online Excel using Office Script, which I don't have access to.
6StringJazzer Thank you
I will post here see if someone is able to help with this. I know is a bit complicated. I apreciate the advice.
cheers
I am trying to convert portions of this google sheets workbook into Excel. https://docs.google.com/spreadsheets...py?usp=sharing
Would like to get help move Cash table from tournament to cash games, and the stats in.
I would like the code to fill Cell O1 on the Cash Games sheet, and the data code will need is in colummns AF:AO on the Info sheet.
please feel free to ask any questions.
cheers
Last edited by west123; 05-17-2023 at 12:35 PM.
thank you for the reply Mrshorty,
but I have not much of an understanding, for all the above tech talk as for MSFT not sure what that means Barely know what VBA is.
I create a post of what I actually need done, hope is not to complicated. apreciate the advice. Hope someone knows well and can contribu the help.
Hi,
Would anyone be able to help in applying 6StringJazzers code in post #4 to my .xlsb file found in post #8?
I looked at your file but did not see where that function was referenced in the worksheet. Was the formula converted to values?
Sorry, I am not sure that I understand what you are asking. I would like cells O1:P1 on the on the cash games sheet to be filled using the code that you wrote. At the moment O1:P1 display a value just to show that the result should come from the Stakes Text column in column AH of the Info sheet. Please let me know if I need to add something else to the file
I am working my way through testing the code. Your code refers to sheets "Bankroll Rules" and "Worksheet" but these do not exist in the Excel file you attached.
I will try to include the spreadsheets into the workbook as soon as possible.
I could just try starting with your Google Sheets version instead but you have a lot of macro functions in there. If they are all needed, I don't have time to rewrite them all.
thank you, 6StringJazzer for what you, done. I will get back to you as soon I can, with and update.
@ 6StringJazzer: I have been helping West123 with the workbook. I have included the Bankroll Rules and Worksheet sheets in the file. Hope that this helps.
Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.
Hi, 6StringJazzer,
I would just like to rewrite the macro to populate cell O1 on the Cash Games sheet, not the whole workbook.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks