Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Edit Excel TextBox using C#

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).Selec t("txtViews");

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

Thanks,
Manish
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Edit Excel TextBox using C#

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

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


Regards,
Vic Eldridge



Manish wrote in message ...
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).Selec t("txtViews");

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

Thanks,
Manish

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I edit my excel document? Edit buttons shaded. Arl @ CBC New Users to Excel 3 September 7th 05 01:18 AM
How to move cursor from one textbox control to another textbox con Tom Ogilvy Excel Programming 1 September 16th 04 03:42 PM
How to move cursor from one textbox control to another textbox con KMoore007 Excel Programming 0 September 16th 04 02:47 PM
Edit Textbox using KeyPress vba code in Access Arno Excel Programming 3 February 23rd 04 11:57 AM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"