Put text in Word and Excel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ep

    Put text in Word and Excel

    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
  • Alf P. Steinbach

    #2
    Re: Put text in Word and Excel

    Off-topic.

    Comment

    • Mike Wahler

      #3
      Re: Put text in Word and Excel

      Ep <eps57@hotmail. com> wrote in message
      news:64f592a1.0 309161115.4d8da 645@posting.goo gle.com...[color=blue]
      > I need to put some text (and numbers) in Word and Excel.
      > How do I put
      > that into them?[/color]

      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;
      }
      [color=blue]
      > Also how can I use the "hot keys" to navigate in
      > each.[/color]

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

      -Mike



      Comment

      • Agent Mulder

        #4
        Re: Put text in Word and Excel

        <Ep>[color=blue]
        > 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.[/color]
        </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


        Comment

        • Noah Roberts

          #5
          Re: Put text in Word and Excel

          Ep wrote:[color=blue]
          > 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.[/color]

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

          NR

          Comment

          • Ep

            #6
            Re: Put text in Word and Excel

            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" <eps57@hotmail. com> wrote in message
            news:64f592a1.0 309161115.4d8da 645@posting.goo gle.com...[color=blue]
            > 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[/color]




            -----= 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! =-----

            Comment

            • Kevin Goodsell

              #7
              Re: Put text in Word and Excel

              Ep wrote:[color=blue]
              > Sorry but I guess I was unclear as to what I am trying to accomplish.
              >[/color]

              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).




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



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

              Comment

              • Jonathan Mcdougall

                #8
                Re: Put text in Word and Excel

                Please do not top post. Rearranged.
                [color=blue][color=green]
                >> 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.[/color][/color]
                [color=blue]
                >Sorry but I guess I was unclear as to what I am trying to accomplish.[/color]

                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.




                Jonathan

                Comment

                Working...