Excel Ribbon: Read and Write Data from and to cells


i have an excel spreadsheet, which has a parameter sheet. i want to read the parameters the user keyed in, into the ribbon ( i will be creating custom ribbon tabs for this ). Is it possible to read data from cells and write data to cells from the ribbon ?

V BSenior AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
I do not think it is possible to write to or from the ribbon.

Instead of writing from cells to ribbon and then from ribbon to other cells you can consider writing from cells to other cells.
Saqib Husain, SyedEngineerCommented:
Alternatively it would be probably much simpler to write from the parameters sheet to a data file on disk and then from that file to the other sheet.
V BSenior AnalystAuthor Commented:
Thank you Saqib for taking time to answer my question,

but, i have done the reading values from cells to ribbon in one of my project.

This is done using the RibbonUI.InvalidateControl and it works perfectly well.

what i wanted to know is, is this the same procedure for writing to cells from ribbon ?

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Rory ArchibaldCommented:
Typically you would write to a cell using the routine you call from the onAction callback of your Ribbon control, but you can also do it from any other callback.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
V BSenior AnalystAuthor Commented:
Hi Rory,

thanks for your feedback, i will test this out and get back to you on this.

V BSenior AnalystAuthor Commented:

i managed to get this done via the callbacks.

thanks for your help :)

Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.