Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default For Tom Ogilve re File check

Hi Tom,

Thankyou for your reply to my post
Checking if active file is correct version

I tried to reply but my browser won't co-operate, and I certainly didn't
wish to appear ungrateful!

Such a simple solution that has been eluding me for hours - at least the
syntax has.

This now works exactly as i wanted:


Public Function checkActiveFilename(sOpenFileName) As Boolean
Dim sNewFile As String
sNewFile = "C:\NewFolder\NewFile\"
If ActiveWorkbook.Path = sNewFile Then
checkActiveFilename = False
End If
End Function

Many thanks,

Matilda
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default For Tom Ogilve re File check

Your welcome. Glad it worked out.
--
Regards,
Tom Ogilvy


"Matilda" wrote:

Hi Tom,

Thankyou for your reply to my post
Checking if active file is correct version

I tried to reply but my browser won't co-operate, and I certainly didn't
wish to appear ungrateful!

Such a simple solution that has been eluding me for hours - at least the
syntax has.

This now works exactly as i wanted:


Public Function checkActiveFilename(sOpenFileName) As Boolean
Dim sNewFile As String
sNewFile = "C:\NewFolder\NewFile\"
If ActiveWorkbook.Path = sNewFile Then
checkActiveFilename = False
End If
End Function

Many thanks,

Matilda

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
code to check file size everytime an Excel file is opened Kaiser[_2_] Excel Programming 2 July 30th 06 05:46 PM
File Open Check dthmtlgod Excel Programming 1 January 13th 06 02:51 PM
check if file exists Curt Excel Programming 0 December 7th 05 05:02 PM
Check who's using a file Luis Excel Programming 1 August 6th 04 03:31 PM
Check a file in a directory Rich Cooper Excel Programming 2 May 18th 04 08:56 PM


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