Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default problem: changing a text frame's contents from an outside applicat

I am working on a VB6 program that opens xls files "in the background" and
attempts to edit the text in certain text frames. The frames are part of a
group of shapes that is independent of the cells.

I use the following code to edit the frames' text:

xlsGroup.Item(currSubShape).TextFrame.Characters.T ext = txtSheet

whe xlsGroup is the group of shapes; currSubShape is the index of the
shape with the desired text frame and; txtSheet is a string variable
containing the new text.

I get Run Time Error 1004: Unable to set the text property of the characters
class.

My group and its constituent shapes are not locked, and there is no text
lock on the text frame.

Yes, its driving me crazy! Any enlightmentment will be vastly appreciated!


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
How can i display excel file in winforms in Smart Device Applicat Bhavesh Mandaliya Excel Discussion (Misc queries) 0 October 20th 08 07:11 AM
Changing cell contents Mike Excel Discussion (Misc queries) 2 February 11th 08 04:41 PM
Problem with changing cell contents with $ sign MMangen Excel Worksheet Functions 4 December 19th 06 11:22 PM
Changing the Contents of a Cell PaulW Excel Discussion (Misc queries) 0 March 30th 06 10:40 AM
Cell contents changing colors Barmaley Excel Programming 0 July 8th 03 03:24 PM


All times are GMT +1. The time now is 12:31 AM.

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

About Us

"It's about Microsoft Excel"