Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create a macro to launch notepad while in Excel.

I'd like to create a macro to launch notepad while in Excel. The macro
should then return to the opened spreadsheet in Excel.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Create a macro to launch notepad while in Excel.

Hi
Shell "NOTEPAD.EXE"
AppActivate "Microsoft Excel"
(tested on Win Xp Pro + Excel 2003)
HTH
Cordially
Pascal

"cheryljohnson" a écrit dans le
message de ...
I'd like to create a macro to launch notepad while in Excel. The macro
should then return to the opened spreadsheet in Excel.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Create a macro to launch notepad while in Excel.

Sub OpenNotepad()
Dim RetVal As Variant
RetVal = Shell("C:\Windows\Notepad.exe", 4)
MsgBox "Notepad is open."
End Sub

--
HTH
Jason
Atlanta, GA

-----Original Message-----
I'd like to create a macro to launch notepad while in

Excel. The macro
should then return to the opened spreadsheet in Excel.
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Create a macro to launch notepad while in Excel.

Just to add to this, if you have a specific file in mind, you can add it to
the command line e.g.

shell "notepad c:\myfile.txt"

Gareth

"papou" wrote in message
...
Hi
Shell "NOTEPAD.EXE"
AppActivate "Microsoft Excel"
(tested on Win Xp Pro + Excel 2003)
HTH
Cordially
Pascal

"cheryljohnson" a écrit dans le
message de ...
I'd like to create a macro to launch notepad while in Excel. The macro
should then return to the opened spreadsheet in Excel.





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
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM
Launch Excel vba macro from Access? Rob Stewart Excel Programming 2 September 14th 04 12:27 PM
launch any file type from excel macro arron laing Excel Programming 4 July 23rd 04 08:23 AM
Can you use an IF statement to launch a macro? ian123[_34_] Excel Programming 3 January 3rd 04 12:38 AM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM


All times are GMT +1. The time now is 03:18 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"