473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Put text in Word and Excel

Ep
I need to put some text (and numbers) in Word and Excel. How do I put
that into them? Also how can I use the "hot keys" to navigate in
each.

Thanks

Ep
Jul 19 '05 #1
7 5044
Off-topic.

Jul 19 '05 #2
Ep <ep***@hotmail.com> wrote in message
news:64**************************@posting.google.c om...
I need to put some text (and numbers) in Word and Excel.
How do I put
that into them?
With standard C++ (the topic here), you can put text
into a file. Then you can use Word or Excel's import
facility to read the text file.

You can create a text file with C++ as in this example:

#include <fstream>

int main()
{
std::ofstream textfile("stuff.txt");
textfile << "some text" << '\n';
return 0;
}
Also how can I use the "hot keys" to navigate in
each.


Read the documentation for a piece of software to
learn how to use that software.

-Mike

Jul 19 '05 #3
<Ep>
I need to put some text (and numbers) in Word and Excel. How do I put
that into them? Also how can I use the "hot keys" to navigate in
each.

</Ep>

Good news for programmers in Windows using vim.exe. You can copy
text (from internet zb) and paste it *in* vim. Never knew untill the cat
jumped on it.

-X
Jul 19 '05 #4
Ep wrote:
I need to put some text (and numbers) in Word and Excel. How do I put
that into them? Also how can I use the "hot keys" to navigate in
each.


Personally, I would use the keyboard...but that is just me.

NR

Jul 19 '05 #5
Ep
Sorry but I guess I was unclear as to what I am trying to accomplish.

Here is the scenario:
Run Word.exe (open up the Word to a blank document)
"Type" in some text (using this application, not Word or the keyboard).
Move/copy/paste the text that was just entered.
Save the file to a name (dynamically named during execution).
Run Excel.exe (open up the Excel to a blank worksheet)
Enter some data, move to next cell, enter data, move, etc.
Save the file

Any ideas after using the execution function to open Word/Excel?

Ep

"Ep" <ep***@hotmail.com> wrote in message
news:64**************************@posting.google.c om...
I need to put some text (and numbers) in Word and Excel. How do I put
that into them? Also how can I use the "hot keys" to navigate in
each.

Thanks

Ep



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 19 '05 #6
Ep wrote:
Sorry but I guess I was unclear as to what I am trying to accomplish.


Sorry, but I guess some of us were unclear that this is off-topic. You
might try a Widows programming group. Standard C++ has no facilities for
interfacing with other programs (other than the std::system function,
which is very limited).

http://www.slack.net/~shiva/welcome.txt
http://www.slack.net/~shiva/offtopic.txt

Also, please don't top-post. See section 5 of the FAQ for posting
guidelines.

http://www.parashift.com/c++-faq-lite/

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

Jul 19 '05 #7
Please do not top post. Rearranged.
I need to put some text (and numbers) in Word and Excel. How do I put
that into them? Also how can I use the "hot keys" to navigate in
each.
Sorry but I guess I was unclear as to what I am trying to accomplish.


No, you were very clear, but maybe the answers were not as clear as
they should have been. This is what happens when half of the posts
are off-topic, people get annoyed.

It is impossible to accomplish this with Standard C++, you must use
implementation-specific librairies. Since this is not the topic of
this newsgroup, you must ask elsewhere.

http://www.slack.net/~shiva/welcome.txt
Jonathan

Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris | last post by:
Hi, - How can I open an existing word document from a C#-client and manipulate that document from within the C#-client ? - How can I open an excel document that is embedded in a word-document...
4
by: Chris | last post by:
Hi, everything works apart from the last line :-(( rng.Value2.ToString() An exception is thrown : "Old format or invalid type library" It gets compiled though (so he recognizes the property...
1
by: Bernd Muent | last post by:
Hi together, I am using the following code in Visual Basic to open Word or Excel applications: Word: Dim w As Word.Application w = CType(CreateObject("Word.application"), Word.Application)...
4
by: Lisa | last post by:
Hi - I'm able to open excel workbooks and word documents, but I can't seem to copy excel charts, named ranges, etc. to a word document. Anyone know of good reference material in this area? What...
1
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
1
by: jrs_14618 | last post by:
Hello All, This post is essentially a reply a previous post/thread here on this mailing.database.myodbc group titled: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode I was...
5
by: Carstonio | last post by:
I use ASP to display links to Word documents on an intranet. Is there a way in ASP to do text searches on the documents' contents? I want the results to have the link to the Word document plus two...
1
by: webgirl | last post by:
Hi everyone, I have a weird problem with some Word/Excel automation code that I run from Access (not sure if I should therefore post this in the Access forum..? Thought I'd try here first) ...
2
by: Killer42 | last post by:
Hi all. I'm using MS Word 2003, and MS Excel 2003. When I copy text from a Word document and paste it into Excel as plain text, Word creates a bookmark around the selected text. I'd like to know...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.