Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when referring to cell by object, not directly naming cell #29

Closed
datadrivensupplychain opened this issue Oct 1, 2023 · 2 comments

Comments

@datadrivensupplychain
Copy link

I'm trying out excel.link and it has the functionality I need when I'm directly referring to a cell via the command line or a script, eg xlrc[h4] <- 500 sets cell H4 to 500 (I just switch over to Excel and check). This works, but if I try to set the cell as an object (eg k <- 'H4' ) then refer to that object xlrc[k] <- 500 , I get Error: Exception Returned. I'm trying out excel.link because I need to be able to do what-if scenarios on a spreadsheet with thousands of iterations, so I need to be able to not hand-type in cell references every time! Where did I go wrong?

@gdemin
Copy link
Owner

gdemin commented Oct 3, 2023

When you want to use range in the variable you need to use double bracket notation:

xlrc[[k]] <- 500

@datadrivensupplychain
Copy link
Author

datadrivensupplychain commented Oct 3, 2023 via email

@gdemin gdemin closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants