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

Can someone assist with VBA code within excel to kick off notepad, do a paste
(because I've already issued a copy) and then save the file as message.txt
and close to return to excel.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Manipulating Notepad from Excel

On Aug 28, 1:54 pm, SkyEyes wrote:
Can someone assist with VBA code within excel to kick off notepad, do a paste
(because I've already issued a copy) and then save the file as message.txt
and close to return to excel.

Thanks in advance.


Why not save as text from excel? You can use the SaveAs method or
SaveCopyAs.

Example:

ActiveWorkbook.SaveAs fileFormat:=xlTextWindows

Take care though, because it will only save the active sheet. So
paste what you want to save as text to a new sheet (or a new workbook
if you have other data that you don't want to lose) and then save as
text.

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
Converting excel to notepad Cindy Excel Discussion (Misc queries) 3 July 6th 07 03:15 PM
Notepad to excel T Miller Excel Discussion (Misc queries) 5 October 19th 06 10:56 PM
notepad to excel jeremy via OfficeKB.com New Users to Excel 1 June 9th 05 05:46 PM
Control Notepad from Excel Pete Excel Programming 4 October 8th 04 01:41 AM
notepad in excel Mohan[_2_] Excel Programming 1 August 29th 03 03:08 PM


All times are GMT +1. The time now is 10:37 AM.

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

About Us

"It's about Microsoft Excel"