Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Did anyone know about "Shell" function?

My question is click a button and it will automatic open
that folder, but that folder is not a fix location, it
will change base on difference record. I only know how to
use Shell function to link a path and open it, did Shell
function link with a veriable? As I use a veriable to
store the current path. I read all about Shell's Help in
Excel, but I can't find any statment could help me.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Did anyone know about "Shell" function?

Katherine,

Do you want to get at a file within a folder? If so, look at the
GetOpenFilename method, it gives a dialog box to navigate for the file.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Katherine Woo" wrote in message
...
My question is click a button and it will automatic open
that folder, but that folder is not a fix location, it
will change base on difference record. I only know how to
use Shell function to link a path and open it, did Shell
function link with a veriable? As I use a veriable to
store the current path. I read all about Shell's Help in
Excel, but I can't find any statment could help me.



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Did anyone know about "Shell" function?

Thanks for your help, I only need link & open that folder.
No need to open its files.
I know below:
Example: Shell "Explorer.exe \\Y:\sys\Temp",
vbMaximizedFocus

My question is I need to change that "\\Y:\sys\Temp" be a
veriable,say CurrentLink, I had try to change it as a
veriable, but it show no value of it. But I confirm
that "CurrentLink" already update the current path. Is
there need to add any special things to run it?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Did anyone know about "Shell" function?

vLink = "\\Y:\sys\Temp"
Shell "Explorer.exe " & vLink, _
vbMaximizedFocus

--
Regards,
Tom Ogilvy

wrote in message
...
Thanks for your help, I only need link & open that folder.
No need to open its files.
I know below:
Example: Shell "Explorer.exe \\Y:\sys\Temp",
vbMaximizedFocus

My question is I need to change that "\\Y:\sys\Temp" be a
veriable,say CurrentLink, I had try to change it as a
veriable, but it show no value of it. But I confirm
that "CurrentLink" already update the current path. Is
there need to add any special things to run it?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Did anyone know about "Shell" function?

Dear Tom

Yeah!!! Thank you so much for your help! I had just solve
my problem. ^_^ Thanks.

Best Regards,
Katherine
-----Original Message-----
vLink = "\\Y:\sys\Temp"
Shell "Explorer.exe " & vLink, _
vbMaximizedFocus

--
Regards,
Tom Ogilvy

wrote in message
...
Thanks for your help, I only need link & open that

folder.
No need to open its files.
I know below:
Example: Shell "Explorer.exe \\Y:\sys\Temp",
vbMaximizedFocus

My question is I need to change that "\\Y:\sys\Temp" be

a
veriable,say CurrentLink, I had try to change it as a
veriable, but it show no value of it. But I confirm
that "CurrentLink" already update the current path. Is
there need to add any special things to run it?



.

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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
How to use the "shell" command? Tom Excel Discussion (Misc queries) 11 April 27th 10 12:52 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Shell "mkdir" Robin Clay[_3_] Excel Programming 2 August 4th 04 04:30 PM
Problem using Excel's "Shell" command Jim Simpson Excel Programming 0 May 20th 04 06:28 PM


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