PC Review


Reply
Thread Tools Rate Thread

Change Font Colour in VB Q

 
 
Sean
Guest
Posts: n/a
 
      15th Jan 2007
Is it possible to change the font colour of Text in Excel VB editor
(completely) to white?

This may seem strange but its just a basic way to hide code from eyes
(i.e. create another obstacle) as you can't protect via code the vba


Thanks

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      15th Jan 2007
You could change font colour in your own VBE, Tools > Options > General and
perhaps with an appropriate addin in user's too (though I'd regard that as a
virus!).

You can protect code in your project with a password, right click the
project name > properties > protection. Whilst, as I gather, that wouldn't
deter many round here it would probably hide code from most casual users.

Regard,
Peter T


"Sean" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it possible to change the font colour of Text in Excel VB editor
> (completely) to white?
>
> This may seem strange but its just a basic way to hide code from eyes
> (i.e. create another obstacle) as you can't protect via code the vba
>
>
> Thanks
>



 
Reply With Quote
 
Sean
Guest
Posts: n/a
 
      15th Jan 2007
Thanks Peter

I have code that inserts a module in ThisWorkbook, which is then
e-mailed out. What I would like is if this code (created via code) is
then changed to white font within the ThisWorkbook. I have no way of
protecting the vba via code as the module itself creates a dummy file
to be e-mailed out and as I understand from the NG's you can't protect
vba via code, my alternative is to just create a 'tiny' obstacle for
the user if they get nosey


Peter T wrote:
> You could change font colour in your own VBE, Tools > Options > General and
> perhaps with an appropriate addin in user's too (though I'd regard that as a
> virus!).
>
> You can protect code in your project with a password, right click the
> project name > properties > protection. Whilst, as I gather, that wouldn't
> deter many round here it would probably hide code from most casual users.
>
> Regard,
> Peter T
>
>
> "Sean" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Is it possible to change the font colour of Text in Excel VB editor
> > (completely) to white?
> >
> > This may seem strange but its just a basic way to hide code from eyes
> > (i.e. create another obstacle) as you can't protect via code the vba
> >
> >
> > Thanks
> >


 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      15th Jan 2007
> What I would like is if this code (created via code) is
> then changed to white font within the ThisWorkbook


Not possible, you'd need to program to user's vbe or registry (please don't
try!).

> as I understand from the NG's you can't protect
> vba via code,


You could search this group for something like "Bill-Manville lock
vbproject" which uses Sendkeys. Sendkeys of course is flunky, a while back I
tried to make it more reliable by changing passwords an automated instance
and ensuring the appropriate dialogs and msgbox's were on top and active at
the right times, but it's still SendKeys!

Regards,
Peter T

"Sean" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Peter
>
> I have code that inserts a module in ThisWorkbook, which is then
> e-mailed out. What I would like is if this code (created via code) is
> then changed to white font within the ThisWorkbook. I have no way of
> protecting the vba via code as the module itself creates a dummy file
> to be e-mailed out and as I understand from the NG's you can't protect
> vba via code, my alternative is to just create a 'tiny' obstacle for
> the user if they get nosey
>
>
> Peter T wrote:
> > You could change font colour in your own VBE, Tools > Options > General

and
> > perhaps with an appropriate addin in user's too (though I'd regard that

as a
> > virus!).
> >
> > You can protect code in your project with a password, right click the
> > project name > properties > protection. Whilst, as I gather, that

wouldn't
> > deter many round here it would probably hide code from most casual

users.
> >
> > Regard,
> > Peter T
> >
> >
> > "Sean" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Is it possible to change the font colour of Text in Excel VB editor
> > > (completely) to white?
> > >
> > > This may seem strange but its just a basic way to hide code from eyes
> > > (i.e. create another obstacle) as you can't protect via code the vba
> > >
> > >
> > > Thanks
> > >

>



 
Reply With Quote
 
Sean
Guest
Posts: n/a
 
      15th Jan 2007
Thanks Peter, I think I'll pass up on the idea!


Peter T wrote:

> > What I would like is if this code (created via code) is
> > then changed to white font within the ThisWorkbook

>
> Not possible, you'd need to program to user's vbe or registry (please don't
> try!).
>
> > as I understand from the NG's you can't protect
> > vba via code,

>
> You could search this group for something like "Bill-Manville lock
> vbproject" which uses Sendkeys. Sendkeys of course is flunky, a while back I
> tried to make it more reliable by changing passwords an automated instance
> and ensuring the appropriate dialogs and msgbox's were on top and active at
> the right times, but it's still SendKeys!
>
> Regards,
> Peter T
>
> "Sean" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks Peter
> >
> > I have code that inserts a module in ThisWorkbook, which is then
> > e-mailed out. What I would like is if this code (created via code) is
> > then changed to white font within the ThisWorkbook. I have no way of
> > protecting the vba via code as the module itself creates a dummy file
> > to be e-mailed out and as I understand from the NG's you can't protect
> > vba via code, my alternative is to just create a 'tiny' obstacle for
> > the user if they get nosey
> >
> >
> > Peter T wrote:
> > > You could change font colour in your own VBE, Tools > Options > General

> and
> > > perhaps with an appropriate addin in user's too (though I'd regard that

> as a
> > > virus!).
> > >
> > > You can protect code in your project with a password, right click the
> > > project name > properties > protection. Whilst, as I gather, that

> wouldn't
> > > deter many round here it would probably hide code from most casual

> users.
> > >
> > > Regard,
> > > Peter T
> > >
> > >
> > > "Sean" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Is it possible to change the font colour of Text in Excel VB editor
> > > > (completely) to white?
> > > >
> > > > This may seem strange but its just a basic way to hide code from eyes
> > > > (i.e. create another obstacle) as you can't protect via code the vba
> > > >
> > > >
> > > > Thanks
> > > >

> >


 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      16th Jan 2007
Sean,
There are VBA code obfuscators. Here's one with some discussion:
http://www.dailydoseofexcel.com/arch...visible-basic/

NickHK

"Sean" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Peter
>
> I have code that inserts a module in ThisWorkbook, which is then
> e-mailed out. What I would like is if this code (created via code) is
> then changed to white font within the ThisWorkbook. I have no way of
> protecting the vba via code as the module itself creates a dummy file
> to be e-mailed out and as I understand from the NG's you can't protect
> vba via code, my alternative is to just create a 'tiny' obstacle for
> the user if they get nosey
>
>
> Peter T wrote:
> > You could change font colour in your own VBE, Tools > Options > General

and
> > perhaps with an appropriate addin in user's too (though I'd regard that

as a
> > virus!).
> >
> > You can protect code in your project with a password, right click the
> > project name > properties > protection. Whilst, as I gather, that

wouldn't
> > deter many round here it would probably hide code from most casual

users.
> >
> > Regard,
> > Peter T
> >
> >
> > "Sean" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Is it possible to change the font colour of Text in Excel VB editor
> > > (completely) to white?
> > >
> > > This may seem strange but its just a basic way to hide code from eyes
> > > (i.e. create another obstacle) as you can't protect via code the vba
> > >
> > >
> > > 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
FONT COLOUR CHANGE natasha90 Microsoft Excel Worksheet Functions 3 11th Jul 2008 09:19 PM
RE: Change font colour =?Utf-8?B?U3RlZmk=?= Microsoft Excel Misc 1 28th Mar 2007 01:54 AM
Change Font Colour according to value =?Utf-8?B?UiB0aGUgRA==?= Microsoft Access Reports 1 7th Aug 2006 02:38 PM
Change font colour Altec101 Microsoft Excel Programming 15 30th May 2006 08:15 PM
Can't Change Font Colour ExcelMonkey Microsoft Excel Programming 3 23rd Mar 2005 03:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.