Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default how to run a command from a cell

i have a list of filenames in Column A. i want to be able to setup links in
Column B that would launch a executable with the value of associated row in
Column A
for eg

id Launch
1032 Notepad.exe 1032
1033 Notepad.exe 1033
1034 Notepad.exe 1034
1035 Notepad.exe 1035



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default how to run a command from a cell

Hi Dear

You can use the below piece of code to call a exe from VBA. Post back for
any help

Shell Range("A1"),vbNormalFocus

If this post helps click Yes
---------------
Jacob Skaria

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default how to run a command from a cell

Is 1032, 1033 etc the name of text files? If so, then check out Hyperlink
function.

You will need the .txt extension on the file names (1032.txt) and ensure
that Notebook.exe is the default application for .txt files.

Example of Hyperlink function showing the path to the .txt files and
concatenation of the filenames in Column A.

=HYPERLINK("C:\Users\Ossie\Documents\Text Editor\" & A2)

If you need to edit a cell with a hyperlink then click on the cell and hold
the button until you see the cross then you can edit it without it activating
the hyperlink.


--
Regards,

OssieMac


"Seede" wrote:

i have a list of filenames in Column A. i want to be able to setup links in
Column B that would launch a executable with the value of associated row in
Column A
for eg

id Launch
1032 Notepad.exe 1032
1033 Notepad.exe 1033
1034 Notepad.exe 1034
1035 Notepad.exe 1035



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
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
Cell Value is substituted for value in command [email protected] Excel Discussion (Misc queries) 6 February 8th 06 04:17 PM
Locate a cell, based on a criteria, then use the 'Cell' command... cdavidson Excel Discussion (Misc queries) 1 November 17th 05 06:30 PM
in vba what command is used to determine if a particular cell on a particular sheet changed? some kind of event? how to get the old and new value of the cell? Daniel Excel Worksheet Functions 1 June 23rd 05 07:53 PM
VBA Command to Look at cell in an If statement Wolf New Users to Excel 3 December 27th 04 11:27 PM


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

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"