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

Cannot set cell value in Excel 2016 #39

Open
mturchyn opened this issue Sep 19, 2017 · 5 comments
Open

Cannot set cell value in Excel 2016 #39

mturchyn opened this issue Sep 19, 2017 · 5 comments
Labels

Comments

@mturchyn
Copy link

Hello,

I am trying to use your example for Excel 2016 and I am not able to set cell value, though I can read it.

Code sample:

AutomationDataGridCell cell = ...
cell.select(); // Works
cell.setValue("5555"); // Doesn't work

@mmarquee
Copy link
Owner

I have had a play with this, but I have Excel 2016 only, and the examples no longer work as I would expect - I think the underlying hierarchy of the elements has changed, so I will update the documentation and let you know whether it still works

@mturchyn
Copy link
Author

@mmarquee I wonder if there are any updates on this?

@mmarquee
Copy link
Owner

Hi, I am still looking at this, I now have access to Excel 2016, and it looks like the structure the elements on the screen has changed, and so we have to navigate down to the grid different;y. I might be able to look at it this week, depending on my 'real work' schedule.

@mmarquee
Copy link
Owner

I have returned to this issue, and it seems to 'set' the value, without actually changing the value in the cell. I will continue to investigate

@mmarquee
Copy link
Owner

I've done a bit more experimenting, and it looks like a bug somewhere in Excel or the automation library - I can get the value via the inspect tool (i,e. using automation, but not the library), and it behaves in the same way - it sets the value (you can see in the inspector, but the actual value in the cell doesn't change.
I will keep this issue open and periodically restest - especially when a new release of Excel happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants