Edit Excel TextBox using C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to edit a Excel TextBox using C#. I have done the selection
using the following code:
((Excel.Shape)xa.ActiveWorkbook.ActiveSheet).Select("txtViews");

Next I want to edit the text in the TextBox. How do I do that? Any help
would be highly appreciated.

Thanks,
Manish
 
I'm not sure about C#, but in VB we'd use

ActiveWorkbook.ActiveSheet.Shapes("txtViews").TextFrame.Characters.Text = "abc"


Regards,
Vic Eldridge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top