Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Opening Notepad application from Excel macro

Hello,

How can I do the following:

- Open Note pad application from an excel macro
- Copy data from an excel worksheet into the newly opened Wordpad
- Save as a name and close the Wordpad file

Thanks!!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Opening Notepad application from Excel macro

Rafael,
Do you really need to use NotePad/WordPad ?
It would be easier to save you data as a .csv or .txt file.
Or write you own file with Open.
Or even use a Rich Text Box.

Depends what data/format you need, but using NotePad/WordPad should be your
last option.

NickHK

"Rafael" wrote in message
...
Hello,

How can I do the following:

- Open Note pad application from an excel macro
- Copy data from an excel worksheet into the newly opened Wordpad
- Save as a name and close the Wordpad file

Thanks!!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Opening Notepad application from Excel macro

I agree with you. So How could I save a specific worksheet in excel in a txt
format, into a specific location? My data is in XML format and must be
exactly the same format as is in the excel worsheet because it will serve to
be input into another program which is very case sensitive.

I would be interested however, out of curiosity, to know how to do the long
the longer process I described previously.

Thanks!

"NickHK" wrote:

Rafael,
Do you really need to use NotePad/WordPad ?
It would be easier to save you data as a .csv or .txt file.
Or write you own file with Open.
Or even use a Rich Text Box.

Depends what data/format you need, but using NotePad/WordPad should be your
last option.

NickHK

"Rafael" wrote in message
...
Hello,

How can I do the following:

- Open Note pad application from an excel macro
- Copy data from an excel worksheet into the newly opened Wordpad
- Save as a name and close the Wordpad file

Thanks!!





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Opening Notepad application from Excel macro

Excel 10 and up have built in support for XML.
Record a macro as you perform the save and see the code.

Would that work ?

NickHK

"Rafael" wrote in message
...
I agree with you. So How could I save a specific worksheet in excel in a

txt
format, into a specific location? My data is in XML format and must be
exactly the same format as is in the excel worsheet because it will serve

to
be input into another program which is very case sensitive.

I would be interested however, out of curiosity, to know how to do the

long
the longer process I described previously.

Thanks!

"NickHK" wrote:

Rafael,
Do you really need to use NotePad/WordPad ?
It would be easier to save you data as a .csv or .txt file.
Or write you own file with Open.
Or even use a Rich Text Box.

Depends what data/format you need, but using NotePad/WordPad should be

your
last option.

NickHK

"Rafael" wrote in message
...
Hello,

How can I do the following:

- Open Note pad application from an excel macro
- Copy data from an excel worksheet into the newly opened Wordpad
- Save as a name and close the Wordpad file

Thanks!!







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Opening Notepad application from Excel macro

I had tried this method before but the macro does not record the procedures
once I ckick outside Excel.
What code should I use to get this process done automatically?

"NickHK" wrote:

Excel 10 and up have built in support for XML.
Record a macro as you perform the save and see the code.

Would that work ?

NickHK

"Rafael" wrote in message
...
I agree with you. So How could I save a specific worksheet in excel in a

txt
format, into a specific location? My data is in XML format and must be
exactly the same format as is in the excel worsheet because it will serve

to
be input into another program which is very case sensitive.

I would be interested however, out of curiosity, to know how to do the

long
the longer process I described previously.

Thanks!

"NickHK" wrote:

Rafael,
Do you really need to use NotePad/WordPad ?
It would be easier to save you data as a .csv or .txt file.
Or write you own file with Open.
Or even use a Rich Text Box.

Depends what data/format you need, but using NotePad/WordPad should be

your
last option.

NickHK

"Rafael" wrote in message
...
Hello,

How can I do the following:

- Open Note pad application from an excel macro
- Copy data from an excel worksheet into the newly opened Wordpad
- Save as a name and close the Wordpad file

Thanks!!










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Opening Notepad application from Excel macro

Rafael,
Excel can only record actions within itself, not everywhere in Windows. It
will give you code to .SaveAs in XML format. What you with the generated
file is not a matter for Excel, although you can (probably) use VBA. Depends
what you are doing.
More details otherwise how can anyone answer

NickHK

"Rafael" ...
I had tried this method before but the macro does not record the procedures
once I ckick outside Excel.
What code should I use to get this process done automatically?

"NickHK" wrote:

Excel 10 and up have built in support for XML.
Record a macro as you perform the save and see the code.

Would that work ?

NickHK

"Rafael" wrote in message
...
I agree with you. So How could I save a specific worksheet in excel in
a

txt
format, into a specific location? My data is in XML format and must be
exactly the same format as is in the excel worsheet because it will
serve

to
be input into another program which is very case sensitive.

I would be interested however, out of curiosity, to know how to do the

long
the longer process I described previously.

Thanks!

"NickHK" wrote:

Rafael,
Do you really need to use NotePad/WordPad ?
It would be easier to save you data as a .csv or .txt file.
Or write you own file with Open.
Or even use a Rich Text Box.

Depends what data/format you need, but using NotePad/WordPad should
be

your
last option.

NickHK

"Rafael" wrote in message
...
Hello,

How can I do the following:

- Open Note pad application from an excel macro
- Copy data from an excel worksheet into the newly opened Wordpad
- Save as a name and close the Wordpad file

Thanks!!










Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel opening from other application bonz Excel Discussion (Misc queries) 1 January 29th 09 05:06 PM
Create a macro to launch notepad while in Excel. cheryljohnson Excel Programming 3 March 22nd 05 12:08 PM
Opening a different application from Excel JonR Excel Programming 1 December 31st 04 07:07 PM
Opening Notepad from Code Stan Excel Programming 3 July 16th 04 03:18 PM
opening and writing into notepad peter Excel Programming 1 August 15th 03 07:09 PM


All times are GMT +1. The time now is 06:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"