Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ads ads is offline
external usenet poster
 
Posts: 2
Default Protecting VBA Project

I have a simple file with VBA to import text data into excel, the code
enaabling the useer to select the the name of the text file. Depending on
the text file name the user can name the excel file anything they want. This
worked ok until I tried to protect the vba sheets. Once I did that the code
still worked but the excel file could not be saved. Any idea of why
protecting a project would prevent it from being saved under another name.


ads


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protecting VBA Project

i'm not sure,
The name of the Text File is entered into your code. you are the onl
one that can save changes to the code (while saving the file).
Maybe try reset variables before closing.

Or maybe i am wrong

Avne

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
ads ads is offline
external usenet poster
 
Posts: 2
Default Protecting VBA Project

The code opens a dialog box which enables the user to select the text file
to import, all text files being of same layout. After selection the data is
imported into the excel file. The problem is the code works if the project
is protected or not with any named text file, its is that the file cannot be
saved under a different name if the project is protected, if it is not
protected the excel file can be saved under any name the user chooses.

ads

"Avner " wrote in message
...
i'm not sure,
The name of the Text File is entered into your code. you are the only
one that can save changes to the code (while saving the file).
Maybe try reset variables before closing.

Or maybe i am wrong

Avner


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



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
protecting formulas without protecting sheet so grouping still wor JM Excel Discussion (Misc queries) 1 June 4th 09 06:42 AM
Accesing vba project from wb that has vba project password protected cassidyr1 Excel Programming 2 July 3rd 04 01:49 PM
un/protecting VBA project Claude Excel Programming 2 June 22nd 04 12:56 PM
Protecting a VBA project Ekta Singh Excel Programming 1 July 10th 03 03:54 AM
Protecting a VBA project Bob Phillips[_5_] Excel Programming 0 July 9th 03 07:24 AM


All times are GMT +1. The time now is 08:44 AM.

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"