LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unique ID/Name for a computer?

Rob & Tushar:
Thanks for your help. I've got it working. You're right about the security. I'm just trying to discourage it as best I can. There is no sensitive data in there - only pricing data that insurance agents see everyday
-Warren R

----- Rob van Gelder wrote: ----


Tushar's comments are valid. Excel's protection is easily defeated. Tha
said, I believe most protection is easily defeated. You only need go to
crack site (google for crackz) to discover that copy protection is
challenging game and to some people

If you just want to put a "discouraging" lock in place, then Excel and VB
protection will work fine. It won't protect against the determined, that'
all

As for the code - in a standard module

Sub Auto_Open(
tes
End Su

Sub test(
..
End Su


Suggest you do some reading in Help. A good place to read as follows
From VBA's menu: Help | Microsoft Visual Basic Hel
Visual Basic Conceptual Topics: Calling Sub and Function Procedure



--
Rob van Gelder - http://www.vangelder.co.nz/exce


"Tushar Mehta" wrote in messag
news:MPG.1aa8883b90e74661989720@news-server..
To answer your specific question, put Rob's code in a standard module
To execute a subroutine named Test from some other code, use th
statemen
Tes
Books on VBA? I'd say a trip to the local library or book store i

called for. Browse through the selection and pick something that make
sense to you
Finally, XL is not designed for the development of secure solutions

Any scheme you develop will be almost trivial to defeat. But, it'
your decision..
--

Regards
Tushar Meht

www.tushar-mehta.co
Excel, PowerPoint, and VBA add-ins, tutorial
Custom MS Office productivity solution
In article

says..
Thanks for your reply Tushar
I am trying to learn VBA but in the very short-term I have this too

that is being used by quite a few insurance agents who have encouraged me t
sell it. I think the market for this tool is rather small - not expectin
to make a lot of $$ - more like a challenge
My question regarding Rob van Gelder's code is this: I'm not sure ho

to place the code. At this point, the extent of my VBA experience i
AUTO_OPEN and AUTO_CLOSE. I would like to call his code from AUTO_OPEN, bu
do I create a standard module or class modue. What is your suggestions fo
laying this out
Do you have any suggested VBA reading for beginners that is easy t

read
Thank

-Warren
----- Tushar Mehta wrote: ----
Ummm..
You have some very elaborate plans for protecting your product, bu

i
you are just learning VBA what are you protecting? Wouldn't you b
better off learning VBA first and then worrying about how t

protec
your work? Of course, you know your application better than I do
so..
--

Regards
Tushar Meht

www.tushar-mehta.co
Excel, PowerPoint, and VBA add-ins, tutorial
Custom MS Office productivity solution
In article

says..
How do I call another macro (with your code) from my AUTO_OPE

macro? (I am just learning VBA
Thanks again in advance
-Warre
----- Rob van Gelder wrote: ----
Lots of application protection schemes use a combination o

hardwar
identifiers (MAC address, Vol Serial etc...
Here's some code to pull C: Volume Serial Number
Declare Function GetVolumeInformation Lib "kernel32" Alias
"GetVolumeInformationA" (ByVal lpRootPathName As String,

ByVal
lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long,
lpVolumeSerialNumber As Long, lpMaximumComponentLength As

Long,
lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As

String, ByVal
nFileSystemNameSize As Long) As Long
Sub test()
Const cMaxPath = 256, cDrive = "C:\"
Dim strTemp As String, lngRet As Long
Dim lngVolSerial As Long, strVolName As String *

cMaxPath
Dim lngMaxCompLen As Long, lngFileSysFlags As Long
Dim strFileSysName As String * cMaxPath
lngRet = GetVolumeInformation(cDrive, strVolName,

cMaxPath, lngTemp, _
lngMaxCompLen, lngFileSysFlags, strFileSysName,

cMaxPath)
strTemp = Format(Hex(lngTemp), "00000000")
strTemp = Left(strTemp, 4) & "-" & Right(strTemp, 4)
MsgBox strTemp
End Sub
--
Rob van Gelder -
http://www.vangelder.co.nz/excel
"Warren" wrote in

message
...
All,
1) Is there a way to identify a PC that excel is running on?

I.e., IP
address maybe?.
2) If there is, can I use VBA to somehow grab the id/name?
3) If so, what would the code look like?
Thanks in Advance, -Warren

 
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
Row Height variations from computer to computer on same workbook Barb Reinhardt Excel Discussion (Misc queries) 1 April 20th 10 07:06 PM
Formulaed cell response varies from computer to computer WKH Excel Discussion (Misc queries) 3 November 21st 07 06:37 PM
Display size difference- PC computer vs. Mac computer? dk_ Excel Discussion (Misc queries) 1 October 17th 06 05:48 AM
How do I copy all Excel files from old computer to new computer? Rfarsh Excel Discussion (Misc queries) 2 December 20th 05 03:23 AM
Autocomplete works with my home computer but not the office computer Andy Excel Discussion (Misc queries) 4 December 11th 04 07:21 PM


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