Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copy the formatted text from a table cell

Posted on 2001-06-21
7
Medium Priority
?
150 Views
Last Modified: 2010-05-02
I can put unformatted text into an array member, but the moment I put in superscripting and subscripting, the array destroys (or something destroys) the special formatting of characters. I am working with Visual Basic as found in Word 97.

Can someone please tell me how to preserve the formatting while putting all the text in an array. Thank you so very much.

jcherry_99@yahoo.com
0
Comment
Question by:jcherry_99
  • 5
  • 2
7 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6215623
What is the type of array?
0
 

Author Comment

by:jcherry_99
ID: 6215762
Dear Richie:

I suspect that that is the key to the problem I am having.
I have not declared the array type but if I understand it correctly, it defaults to variant. I am a beginner and so do a lot of cutting and pasting from other people's code.

Anyway it is just ordinary text that has some formatting (superscripts and subscripts). How should I declare it?

To reinterate, I want to take formatted text in a cell and put that into an array. The array contents will be printed out later.

Jerome.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6216256
did you try to declare as Byte?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6216264
There is another question, where do you paste/put/whatever the contents of array?
0
 

Author Comment

by:jcherry_99
ID: 6217016
I'm putting it on the same page, just further down. What to do once I have the array is not the problem.

Why byte?

I have a simpler problem. How do you select the beginng contents of a cell (and not the cell itself) without geting the framing of the cell box.
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 150 total points
ID: 6218147
Well, i do not understand your question completely.
Try with pastespecial function and paste format too.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7138968
No more help after an "B" grade, sorry. :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question