Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Question: loading a file into a Object?

Hello Everyone,

I inserted an object into my Excel workbook. It will boot up my NOTEPAD.EXE
program. Is there a way to execute it and have it automatically load a file
name into Notepad??? I want to execute notepad, and then automatically load
a .bat file into it so that I can edit it.

Hope you can help... Michael


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Question: loading a file into a Object?

Look at excel vba help on the shell command.

--
Regards,
Tom Ogilvy


"Michael Vaughan" wrote in message
. ..
Hello Everyone,

I inserted an object into my Excel workbook. It will boot up my

NOTEPAD.EXE
program. Is there a way to execute it and have it automatically load a

file
name into Notepad??? I want to execute notepad, and then automatically

load
a .bat file into it so that I can edit it.

Hope you can help... Michael




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Question: loading a file into a Object?

Use the Shell statement.

Shell "notepad.exe 'h:\test\text.txt'", vbNormalFocus



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Michael Vaughan" wrote in message
. ..
Hello Everyone,

I inserted an object into my Excel workbook. It will boot up
my NOTEPAD.EXE program. Is there a way to execute it and have
it automatically load a file name into Notepad??? I want to
execute notepad, and then automatically load a .bat file into
it so that I can edit it.

Hope you can help... Michael




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
loading ocx file. funkymonkUK[_18_] Excel Programming 3 June 6th 05 01:15 PM
loading a ocx file VBAfunkymonk Excel Programming 1 June 6th 05 01:06 PM
Loading Data from File ~~!!~~ Iceage Excel Programming 0 November 24th 04 01:39 AM
File Loading Problem Jason Hancock Excel Programming 1 June 20th 04 08:53 PM
Loading an Excel file Kevin Sprinkel Excel Programming 0 February 6th 04 04:46 PM


All times are GMT +1. The time now is 07:36 PM.

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"