+ Reply to Thread
Results 1 to 5 of 5

I need a macro that copies macro from a webpage and run it once the workbook is opened

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    edo,nigeria
    MS-Off Ver
    Excel 2007
    Posts
    85

    I need a macro that copies macro from a webpage and run it once the workbook is opened

    I have a workbook that I issue to my customers. Some of my customers request for a trial version before buying the workbook. Because of the loophole in relying on the current date/time in determining when a workbook expires, I'd like a macro which will open a webpage, copy a macro from the page and run it. Whenever I want the workbook to expire, I will simply update the webpage with a macro telling the user the workbook has expired. Sounds weird but I really would like to lay my hand on such code.
    Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: I need a macro that copies macro from a webpage and run it once the workbook is opened

    What would stop the user saving the code that's been downloaded?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-14-2013
    Location
    edo,nigeria
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: I need a macro that copies macro from a webpage and run it once the workbook is opened

    The code will probably by downloaded to a hidden sheet where it will be called from. The workbook will be protected so the user won't have access to the code... That's my guess

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: I need a macro that copies macro from a webpage and run it once the workbook is opened

    So you would also need code to unprotect the workbook so you could write the code to it.

    Also, the user would need to have their security settiings set to allow programmatic access to the VBE.

    The first one is possible but for the second you would need to rely on the user.

  5. #5
    Registered User
    Join Date
    12-14-2013
    Location
    edo,nigeria
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: I need a macro that copies macro from a webpage and run it once the workbook is opened

    Sure. I'll rely on the user. Moreover, since the workbook relies on the macro to function, the user has no option than to enable macro

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-10-2014, 05:20 AM
  2. Use a macro to extract cell data from opened workbook to new opened workbook
    By BrianTFC in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2014, 01:35 PM
  3. Macro which opens workbook, runs macro, copies and then closes
    By Vihral in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2013, 11:45 AM
  4. Replies: 0
    Last Post: 04-26-2013, 03:40 AM
  5. Macro that copies data from one workbook to another
    By tnickless in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2012, 01:48 AM
  6. Replies: 0
    Last Post: 07-27-2011, 09:48 PM
  7. [SOLVED] A Macro that Copies from Excel & Pastes into a webpage
    By Eric in forum Excel General
    Replies: 1
    Last Post: 07-13-2006, 07:45 PM
  8. Workbook copies itself when opened
    By Sundevil249 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2005, 04:20 PM

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