ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Setting File Attributes and Windows versions (https://www.excelbanter.com/excel-programming/291809-setting-file-attributes-windows-versions.html)

John Robinson[_2_]

Setting File Attributes and Windows versions
 
I am having trouble with a routine in Excel vba on Windows 2000
machines. I reset the attributes of the files I want to hide to
vbHidden, using SetAttr, before opening the getopenfile dialogue box(
special filtering means I can't use the file filter in this). It works
well on everything except win 2000 where it takes 30 seconds as
against 0.7 sec in 98 and XP. Any offers? Is it possible to tell which
version of windows is running using excel vba.
Thanks for any help
John Robinson

mudraker[_156_]

Setting File Attributes and Windows versions
 
After doing a search using google I found this site that looks like i
has what you are after

http://www.oreillynet.com/pub/a/orei...sions_0899.htm

--
Message posted from http://www.ExcelForum.com


Tom Ogilvy

Setting File Attributes and Windows versions
 
Possibly

? application.OperatingSystem
Windows (32-bit) 4.10

--
Regards,
Tom Ogilvy


"John Robinson" wrote in message
om...
I am having trouble with a routine in Excel vba on Windows 2000
machines. I reset the attributes of the files I want to hide to
vbHidden, using SetAttr, before opening the getopenfile dialogue box(
special filtering means I can't use the file filter in this). It works
well on everything except win 2000 where it takes 30 seconds as
against 0.7 sec in 98 and XP. Any offers? Is it possible to tell which
version of windows is running using excel vba.
Thanks for any help
John Robinson





All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com