Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Zygan
 
Posts: n/a
Default How to hide a text file using macro


Unfortunately i dont know how to hide them but i figure you want to hide
it on a user drive so that when they open a file it can source back to
the "hidden" file and update the file. i know that you can set up a
macro to create the file and save it with a password and you can set
the password to equal what ever you like e.g
Sub Macro1()
Password = "MYPASSWORD"
ChDir "C:\...."
ActiveWorkbook.SaveAs Filename:= _
"C:\...\Book1.xls", FileFormat:= _
xlNormal, Password:="" + password + "", WriteResPassword:="" +
password + "", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub


Give that a shot.

If you ever find out how to hide a file with a macro post it please.

Thanks


--
Zygan
------------------------------------------------------------------------
Zygan's Profile: http://www.excelforum.com/member.php...o&userid=34423
View this thread: http://www.excelforum.com/showthread...hreadid=548407

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
Excel '00, 1st file has macros, how to stop macro in 2nd file? kaptandrews Excel Discussion (Misc queries) 0 May 24th 06 03:07 PM
embedding a macro when generating a CSV file Fred Charts and Charting in Excel 1 February 16th 06 12:16 AM
opening text file in excel problem jz193 Excel Discussion (Misc queries) 18 February 10th 06 02:42 PM
Weird File Open/Save As Behavior [email protected] Excel Discussion (Misc queries) 0 December 9th 05 02:26 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"