Reply
Solved! Go to solution

Edit Exiting Text From TextBox

Dear All,

 Can someone please Tell me how i can edit the Existing Text in Sheet.

For Example there is a textbox in sheet1 "Good Morning" I want to Change it to "Good Night"

 

How can i do it using C#

 

 

 

 

1 REPLY
Solution
Solution
Accepted by topic author Dev13
‎01-24-2017 09:13 AM

Re: Edit Exiting Text From TextBox

[ Edited ]

Hi,

 

Try to loop all textbox from sheet , then use if statement to find "Good Morning". After that Replace "Good morning" to "Good Evening". 

 

i dont know how to write in C#, please see below .net ,

 

objtables = objsheet.textboxes

 

For i = 1 to objtexts.count

 

objtext = objtexts.item(i)

 

if objtext.text = "Good Morning" then

 

objtext.text = "Good Evening"

 

Endif

 

next

 

use "Solidedge Spy", you will get more details.