Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Scripting Runtime

Hi I am using the script runtime to find and load file names into a listview
control, what I would like to do is be able to use a criteria like "bmp",
"gif", "jpg", "tif", "wmf" instead of the user selecting singly.
Any help would be much appreicated
Charels
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default Scripting Runtime

Hi Charel,

I've tried this code below rather than using Scripting Runtime:

sub Dirof()
dim mydir, r
mydir = dir("c:*.bmp")
do while mydir < ""
r = r+1
cells(r,1).value = mydir
mydir = dir
loop
end Sub

you can do by code above unless you want to get sometingelse
that can't be performed by dir() function, like retrieving filetype
maybe...

Regards,

Halim


vqthomf menuliskan:
Hi I am using the script runtime to find and load file names into a listview
control, what I would like to do is be able to use a criteria like "bmp",
"gif", "jpg", "tif", "wmf" instead of the user selecting singly.
Any help would be much appreicated
Charels


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
Scripting Help Jeremy Excel Discussion (Misc queries) 1 September 21st 09 05:57 PM
VBA scripting Pete Excel Discussion (Misc queries) 2 January 9th 09 03:36 AM
Scripting Stefan Excel Discussion (Misc queries) 3 November 7th 08 10:54 AM
Is scripting the way to go here? LKG[_2_] Excel Programming 0 September 9th 05 07:22 PM
References and Microsoft Scripting Runtime library Tony Seiscons Excel Programming 1 September 20th 04 11:55 PM


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