EPMFAQ Forums - Connect with the EPM Community  

Go Back   EPMFAQ Forums - Connect with the EPM Community > Legacy Microsoft Project Forums > Project 2003 Development


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2008, 11:26 AM
Junior Member
 
Join Date: Apr 2008
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default how to hide a password in macro?

Hi All!

How to hide a password used in Project macro code?

I tried to hide all the code with setting "Lock project for viewing" in Project Properties, but this caused to have Run button disabled (greyed out) for users...

Using global template in Project Server 2003... (though might be the same solution as for 2007)

Thanks,
David








Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 08-07-2008, 03:44 PM
ssanderlin's Avatar
EPMFAQ Founder/Owner
 
Join Date: Feb 2008
Location: Quakertown, PA
Posts: 171
Thanks: 0
Thanked 17 Times in 17 Posts
Default

Quote:
Originally Posted by david.dienes View Post
Hi All!

How to hide a password used in Project macro code?

I tried to hide all the code with setting "Lock project for viewing" in Project Properties, but this caused to have Run button disabled (greyed out) for users...

Using global template in Project Server 2003... (though might be the same solution as for 2007)

Thanks,
David
There's really no good way to do this, since any crypto routine you write would be right there, ready to run.
__________________
Stephen Sanderlin
Founder/Owner - EPMFAQ
VP of Technology - MSProjectExperts
Microsoft Project MVP

If you found this message useful, please click the Thanks button in the post!

This electronic message, along with any information, advice, and opinions it contains, are mine alone and are not representative of my employer. All information is provided in "GOOD FAITH" and on an "AS IS" basis only. I provide no presentations or warranties, express or implied, including implied warranties of fitness for a particular purpose, merchantability, title, and noninfringement. I strongly advise you to extensively test any changes, workarounds, or techniques described herein on a development system prior to implementation in a production environment, and you are hereby notified that I bear no responsibility whatsoever for any loss, harm, or otherwise negative outcomes resulting from your actions, whether or not said actions were a result of this electronic message, directly or indirectly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-08-2008, 03:50 AM
Junior Member
 
Join Date: Apr 2008
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

My task is: get data from SAP via RFC call. How would you implement this with not showing the password? Maybe I shouldn't use macro?

My present solution shows password:
Set objBAPIControl = CreateObject("SAP.Functions")
Set sapConnection = objBAPIControl.Connection
With sapConnection
.Destination = "SQ1"
.ApplicationServer = "111.111.111.111"
.Client = "100"
.User = "RFC_REMOTE"
.Password = "XXX"
.Language = "EN"
.SystemNumber = "00"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-12-2008, 02:34 PM
ssanderlin's Avatar
EPMFAQ Founder/Owner
 
Join Date: Feb 2008
Location: Quakertown, PA
Posts: 171
Thanks: 0
Thanked 17 Times in 17 Posts
Default

Quote:
Originally Posted by david.dienes View Post
My task is: get data from SAP via RFC call. How would you implement this with not showing the password? Maybe I shouldn't use macro?

My present solution shows password:
Set objBAPIControl = CreateObject("SAP.Functions")
Set sapConnection = objBAPIControl.Connection
With sapConnection
.Destination = "SQ1"
.ApplicationServer = "111.111.111.111"
.Client = "100"
.User = "RFC_REMOTE"
.Password = "XXX"
.Language = "EN"
.SystemNumber = "00"
Since you need to store the password, I would do this in a VSTO add-in rather than a macro.
__________________
Stephen Sanderlin
Founder/Owner - EPMFAQ
VP of Technology - MSProjectExperts
Microsoft Project MVP

If you found this message useful, please click the Thanks button in the post!

This electronic message, along with any information, advice, and opinions it contains, are mine alone and are not representative of my employer. All information is provided in "GOOD FAITH" and on an "AS IS" basis only. I provide no presentations or warranties, express or implied, including implied warranties of fitness for a particular purpose, merchantability, title, and noninfringement. I strongly advise you to extensively test any changes, workarounds, or techniques described herein on a development system prior to implementation in a production environment, and you are hereby notified that I bear no responsibility whatsoever for any loss, harm, or otherwise negative outcomes resulting from your actions, whether or not said actions were a result of this electronic message, directly or indirectly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to ssanderlin For This Useful Post:
david.dienes (08-14-2008)
Reply

Thread Tools
Display Modes

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 On
Forum Jump


All times are GMT -4. The time now is 06:05 PM.


Powered by: vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24