Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
HS HS is offline
external usenet poster
 
Posts: 5
Default How do I protect my code?

Hello everybody

I'm a freelancer and I created an excel sheet with some vba code for my
client.

I protected the VBA with password.

Now the client wants to be able to create his own macro as well , but he
gets this password protection.

So is it possible to just protect my vba code and let him create his macros?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How do I protect my code?

Not in the same workbook project.

Maybe you can move your code into an addin and protect that the way you want.

Or ask him to put his macro into another workbook and use alt-f8 to run it.

HS wrote:

Hello everybody

I'm a freelancer and I created an excel sheet with some vba code for my
client.

I protected the VBA with password.

Now the client wants to be able to create his own macro as well , but he
gets this password protection.

So is it possible to just protect my vba code and let him create his macros?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
HS HS is offline
external usenet poster
 
Posts: 5
Default How do I protect my code?

Hello Dave

Thanks for the reply.

Can you help me as to

1) How to make my macro as an add in?

2) How to run macro from another workbook using Alt + F8

Thanks
"Dave Peterson" wrote in message
...
Not in the same workbook project.

Maybe you can move your code into an addin and protect that the way you
want.

Or ask him to put his macro into another workbook and use alt-f8 to run
it.

HS wrote:

Hello everybody

I'm a freelancer and I created an excel sheet with some vba code for my
client.

I protected the VBA with password.

Now the client wants to be able to create his own macro as well , but he
gets this password protection.

So is it possible to just protect my vba code and let him create his
macros?

Thanks


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How do I protect my code?

#1. First, you'd want to separate your VBA code from the workbook that contains
the data.

Then use File|SaveAs to save that workbook with the VBA code as an addin.
There's a choice in the "save as type" dropdown box in the File|SaveAs Dialog
box.

You may need to give the user a way to execute the subroutines in your addin.
(They won't show up in the Tools|Macro|macros (or alt-F8) list.)

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

And if you use xl2007:

If you want to learn about modifying the ribbon, you can start at Ron de Bruin's
site:
http://www.rondebruin.nl/ribbon.htm
http://www.rondebruin.nl/qat.htm -- For macros for all workbooks (saved as an
addin)
or
http://www.rondebruin.nl/2007addin.htm

In xl2007, those toolbars and menu modifications will show up under the addins.

==============
#2. Just open the other workbook and activate the workbook & worksheet that
needs the macro to run (probably). Then hit alt-F8 or Tools|Macro|Macros and
select from the list and hit the run button.

HS wrote:

Hello Dave

Thanks for the reply.

Can you help me as to

1) How to make my macro as an add in?

2) How to run macro from another workbook using Alt + F8

Thanks
"Dave Peterson" wrote in message
...
Not in the same workbook project.

Maybe you can move your code into an addin and protect that the way you
want.

Or ask him to put his macro into another workbook and use alt-f8 to run
it.

HS wrote:

Hello everybody

I'm a freelancer and I created an excel sheet with some vba code for my
client.

I protected the VBA with password.

Now the client wants to be able to create his own macro as well , but he
gets this password protection.

So is it possible to just protect my vba code and let him create his
macros?

Thanks


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
HS HS is offline
external usenet poster
 
Posts: 5
Default How do I protect my code?

Hey Dave

Thanks for the prompt reply!

I got the addin part..

Now there is no code in my workbook and I have an add in.

But how do I execute it??

What I had is two macros.

And there were two images on the excel sheet, which ran them, when it was
clicked on.

Now, how do I run the macro in the addin by clicking on the image?

Thanks...

"Dave Peterson" wrote in message
...
#1. First, you'd want to separate your VBA code from the workbook that
contains
the data.

Then use File|SaveAs to save that workbook with the VBA code as an addin.
There's a choice in the "save as type" dropdown box in the File|SaveAs
Dialog
box.

You may need to give the user a way to execute the subroutines in your
addin.
(They won't show up in the Tools|Macro|macros (or alt-F8) list.)

For additions to the worksheet menu bar, I really like the way John
Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

And if you use xl2007:

If you want to learn about modifying the ribbon, you can start at Ron de
Bruin's
site:
http://www.rondebruin.nl/ribbon.htm
http://www.rondebruin.nl/qat.htm -- For macros for all workbooks (saved
as an
addin)
or
http://www.rondebruin.nl/2007addin.htm

In xl2007, those toolbars and menu modifications will show up under the
addins.

==============
#2. Just open the other workbook and activate the workbook & worksheet
that
needs the macro to run (probably). Then hit alt-F8 or Tools|Macro|Macros
and
select from the list and hit the run button.

HS wrote:

Hello Dave

Thanks for the reply.

Can you help me as to

1) How to make my macro as an add in?

2) How to run macro from another workbook using Alt + F8

Thanks
"Dave Peterson" wrote in message
...
Not in the same workbook project.

Maybe you can move your code into an addin and protect that the way you
want.

Or ask him to put his macro into another workbook and use alt-f8 to run
it.

HS wrote:

Hello everybody

I'm a freelancer and I created an excel sheet with some vba code for
my
client.

I protected the VBA with password.

Now the client wants to be able to create his own macro as well , but
he
gets this password protection.

So is it possible to just protect my vba code and let him create his
macros?

Thanks

--

Dave Peterson


--

Dave Peterson




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How do I protect my code?

I wouldn't use the images on the worksheet to run the macros.

I'd use a toolbar.



HS wrote:

Hey Dave

Thanks for the prompt reply!

I got the addin part..

Now there is no code in my workbook and I have an add in.

But how do I execute it??

What I had is two macros.

And there were two images on the excel sheet, which ran them, when it was
clicked on.

Now, how do I run the macro in the addin by clicking on the image?

Thanks...

"Dave Peterson" wrote in message
...
#1. First, you'd want to separate your VBA code from the workbook that
contains
the data.

Then use File|SaveAs to save that workbook with the VBA code as an addin.
There's a choice in the "save as type" dropdown box in the File|SaveAs
Dialog
box.

You may need to give the user a way to execute the subroutines in your
addin.
(They won't show up in the Tools|Macro|macros (or alt-F8) list.)

For additions to the worksheet menu bar, I really like the way John
Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

And if you use xl2007:

If you want to learn about modifying the ribbon, you can start at Ron de
Bruin's
site:
http://www.rondebruin.nl/ribbon.htm
http://www.rondebruin.nl/qat.htm -- For macros for all workbooks (saved
as an
addin)
or
http://www.rondebruin.nl/2007addin.htm

In xl2007, those toolbars and menu modifications will show up under the
addins.

==============
#2. Just open the other workbook and activate the workbook & worksheet
that
needs the macro to run (probably). Then hit alt-F8 or Tools|Macro|Macros
and
select from the list and hit the run button.

HS wrote:

Hello Dave

Thanks for the reply.

Can you help me as to

1) How to make my macro as an add in?

2) How to run macro from another workbook using Alt + F8

Thanks
"Dave Peterson" wrote in message
...
Not in the same workbook project.

Maybe you can move your code into an addin and protect that the way you
want.

Or ask him to put his macro into another workbook and use alt-f8 to run
it.

HS wrote:

Hello everybody

I'm a freelancer and I created an excel sheet with some vba code for
my
client.

I protected the VBA with password.

Now the client wants to be able to create his own macro as well , but
he
gets this password protection.

So is it possible to just protect my vba code and let him create his
macros?

Thanks

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
Can protect worksheet then workbook but not Protect and Share in code [email protected] Excel Programming 7 January 16th 17 07:01 AM
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... Corey Excel Programming 4 November 25th 06 04:57 AM
Generic protect/unprotect code through buttons and code? StargateFanFromWork[_3_] Excel Programming 4 December 31st 05 12:10 AM
How to Protect my code without anybody seeing Terry Excel Programming 5 November 30th 05 09:28 AM
What is the best way to protect VBA code Daniel CHEN Excel Programming 2 July 19th 05 08:52 AM


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