Solved

Copy the formatted text from a table cell

Posted on 2001-06-21
7
137 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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 50 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

809 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