+ Reply to Thread
Results 1 to 2 of 2

activation require when open a project

  1. #1
    Registered User
    Join Date
    07-04-2011
    Location
    los angeles
    MS-Off Ver
    Excel 2003
    Posts
    1

    activation require when open a project

    Dear All:

    I owned a little company and i hired a gentleman couple month agos to do the scheduling on my shop. Unfortunately business got suck and i have to let him go last week. He wrote one program for the scheduling and i did paid him for that, somehow when i tried to install on different pc today, it required activation code. So i have to paid someone to break into his VBA project to unlock the program, but did not worked out. Here is the code he wrote, could u please help me if u could and i really appreciate all your helps.




    Private Declare Function QuickLicenseRTX Lib "c:\Scheduler\SchRuntime.dll" (ByVal lpBuffer As String, ByVal nSize As Integer) As Integer


    Private Sub Workbook_BeforeClose(Cancel As Boolean)

    Sheet5.Select
    Range("A2").Value = -999
    ThisWorkbook.Save

    End Sub

    Private Sub Workbook_Open()

    Dim Message As String
    Dim ReturnLen As Integer
    Message = "C:\Scheduler;ProductSchS2007;1.0.0;999;;"
    Message = Message + String(4096 - Len(Message), 0)
    ReturnLen = QuickLicenseRTX(Message, Len(Message))
    Message = Left(Message, ReturnLen)

    Sheet5.Select
    Range("A2").Value = Message

    Sheet1.Select
    Range("F5").Select

    End Sub
    Last edited by lonelyranger; 07-05-2011 at 06:00 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: vba project help

    Hi Lonelyranger, welcome to the forum.

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1