PC Review


Reply
Thread Tools Rate Thread

deploying Custom.xls

 
 
=?Utf-8?B?QWxsZW5fTg==?=
Guest
Posts: n/a
 
      23rd Oct 2006
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 With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      23rd Oct 2006
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" <(E-Mail Removed)> wrote in message
news:FD2D2A02-D3CC-49D3-8E19-(E-Mail Removed)...
> 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 With Quote
 
gimme_this_gimme_that@yahoo.com
Guest
Posts: n/a
 
      23rd Oct 2006
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.

 
Reply With Quote
 
=?Utf-8?B?QWxsZW5fTg==?=
Guest
Posts: n/a
 
      24th Oct 2006
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" <(E-Mail Removed)> wrote in message
> news:FD2D2A02-D3CC-49D3-8E19-(E-Mail Removed)...
> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying custom toolbar and custom icons ker_01 Microsoft Excel Programming 6 25th Jul 2008 03:02 PM
Deploying with Custom References jp2msft Microsoft VB .NET 5 15th Jul 2008 12:46 PM
Deploying custom code =?Utf-8?B?TWFya3Vz?= Microsoft Outlook VBA Programming 2 17th Aug 2007 04:10 PM
RE: Deploying custom code =?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ== Microsoft Outlook VBA Programming 0 17th Aug 2007 01:55 AM
Deploying CF 2.0 Custom Controls Steve B. Microsoft Dot NET Compact Framework 4 16th Jan 2006 02:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.