Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default deploying Custom.xls

Before going on vacation, I moved an Excel workbook and Custom.xls (where the
macros it needs) to our group's server; I wanted to keep the data and the
macro source code in one place, for ease of maintenance. I found that by
placing a shortcut to the server-based Custom.xls in the local machines
XLSTART folder, the macros would be available to the local machine even
though they resided in a central location. After much testing (including from
a reboot), I was entirely satisfied that everything worked.

Today, opening the workbook generated a message that Custom.xls was
read-only or encrypted, and the macros would not run. How could this work
perfectly in testing and not at all a week later?

I guess a more useful question is: what is the proper way to centralise VBA
code? (I would like to be able to protect it from tampering, as well, if
possible.)

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default deploying Custom.xls

It can be marked as readonly by a process outside of Excel. Maybe it is a
maintenance action performed on the server files.

--
Regards,
Tom Ogilvy


"Allen_N" wrote in message
...
Before going on vacation, I moved an Excel workbook and Custom.xls (where
the
macros it needs) to our group's server; I wanted to keep the data and the
macro source code in one place, for ease of maintenance. I found that by
placing a shortcut to the server-based Custom.xls in the local machines
XLSTART folder, the macros would be available to the local machine even
though they resided in a central location. After much testing (including
from
a reboot), I was entirely satisfied that everything worked.

Today, opening the workbook generated a message that Custom.xls was
read-only or encrypted, and the macros would not run. How could this work
perfectly in testing and not at all a week later?

I guess a more useful question is: what is the proper way to centralise
VBA
code? (I would like to be able to protect it from tampering, as well, if
possible.)

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default deploying Custom.xls

The proper way to centralize VBA code is to store the VBA code in an
AddIn.
You can resolve the tampering issues by creating a Template Worksheet
and an AddIn and keeping sensitive data in the AddIn while keeping the
formatting and the "end result" Workbook in the Template.

Today, opening the workbook generated a message that Custom.xls was
read-only or encrypted, and the macros would not run. How could this work
perfectly in testing and not at all a week later?


Perhaps there was something slightly different about how it was opened
a week later.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default deploying Custom.xls

Thanks Tom,

I thought there might be something like that.

"Tom Ogilvy" wrote:

It can be marked as readonly by a process outside of Excel. Maybe it is a
maintenance action performed on the server files.

--
Regards,
Tom Ogilvy


"Allen_N" wrote in message
...
Before going on vacation, I moved an Excel workbook and Custom.xls (where
the
macros it needs) to our group's server; I wanted to keep the data and the
macro source code in one place, for ease of maintenance. I found that by
placing a shortcut to the server-based Custom.xls in the local machines
XLSTART folder, the macros would be available to the local machine even
though they resided in a central location. After much testing (including
from
a reboot), I was entirely satisfied that everything worked.

Today, opening the workbook generated a message that Custom.xls was
read-only or encrypted, and the macros would not run. How could this work
perfectly in testing and not at all a week later?

I guess a more useful question is: what is the proper way to centralise
VBA
code? (I would like to be able to protect it from tampering, as well, if
possible.)

Thanks!




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
deploying data shazbat61 Excel Discussion (Misc queries) 0 May 23rd 08 05:20 PM
Deploying “Analysis ToolPak” Will Butler Setting up and Configuration of Excel 6 January 16th 05 04:57 AM
Deploying and don't have CD Wally Steadman[_4_] Excel Programming 3 December 30th 04 05:17 AM
Deploying Office Web Components 9.0 TMesh Excel Programming 0 November 5th 04 08:11 PM
Deploying a .NET add-in in Excel 2002 Matthew[_10_] Excel Programming 1 January 8th 04 05:37 PM


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