Copy the formatted text from a table cell

Posted on 2001-06-21
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.
Question by:jcherry_99
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
LVL 16

Expert Comment

ID: 6215623
What is the type of array?

Author Comment

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.

LVL 16

Expert Comment

ID: 6216256
did you try to declare as Byte?
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

LVL 16

Expert Comment

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

Author Comment

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.
LVL 16

Accepted Solution

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

Expert Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

623 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