Solved

Copy the formatted text from a table cell

Posted on 2001-06-21
7
135 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
Comment Utility
What is the type of array?
0
 

Author Comment

by:jcherry_99
Comment Utility
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
Comment Utility
did you try to declare as Byte?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 16

Expert Comment

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

Author Comment

by:jcherry_99
Comment Utility
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
Comment Utility
Well, i do not understand your question completely.
Try with pastespecial function and paste format too.
0
 
LVL 16

Expert Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now