Results 1 to 13 of 13

VBA Question- PutMem4 ByVal VarPtr (API_readfile), ByVal lngPtr

Threaded View

Aero_apple VBA Question- PutMem4 ByVal... 11-03-2022, 10:47 PM
6StringJazzer Re: VBA Question- PutMem4... 11-04-2022, 09:49 AM
Aero_apple Re: VBA Question- PutMem4... 11-04-2022, 06:34 PM
Marc L Re: VBA Question- PutMem4... 11-04-2022, 09:39 PM
6StringJazzer Re: VBA Question- PutMem4... 11-04-2022, 10:06 PM
Aero_apple Re: VBA Question- PutMem4... 11-06-2022, 06:34 PM
Marc L Re: VBA Question- PutMem4... 11-06-2022, 07:11 PM
6StringJazzer Re: VBA Question- PutMem4... 11-06-2022, 10:34 PM
Aero_apple Re: VBA Question- PutMem4... 11-08-2022, 08:43 PM
Marc L Re: VBA Question- PutMem4... 11-09-2022, 07:21 AM
Marc L Try this ! 11-09-2022, 08:27 AM
Aero_apple Re: VBA Question- PutMem4... 11-09-2022, 08:19 PM
Marc L Re: VBA Question- PutMem4... 11-09-2022, 09:17 PM
  1. #1
    Registered User
    Join Date
    11-03-2022
    Location
    California, US
    MS-Off Ver
    2019
    Posts
    5

    VBA Question- PutMem4 ByVal VarPtr (API_readfile), ByVal lngPtr

    Private Declare PtrSafe Sub PutMem4 Lib "msvbvm60" (Destination As Any, value as Any)
    
    PutMem4 ByVal VarPtr (API_readfile), ByVal lngPtr
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    The macro runs fine in Office2013 and it has problem in Office2019 & windows 64 bit system. The error shows that "msvbvm60" is not found. I googled some information and found that it is related to Windows 32bit and 64 bit system. The runtime file "msvbvm60.dll" is not supported by 64 bit system.

    Is there any Sub in Windows 64 bit that I can use to replace this line of code?
    PutMem4 ByVal VarPtr (API_readfile), ByVal lngPtr

    It seems like the function of "PutMem4" is to store the file in memory and then read from the memory and put it into a output string variable? (I might not be correct)

    Thank you very much for any input!
    Last edited by 6StringJazzer; 11-04-2022 at 09:43 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Byval Target lookup
    By peterschein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2019, 11:08 AM
  2. [SOLVED] ByVal Target as Range to Last Row
    By Redled89 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2015, 05:47 PM
  3. [SOLVED] Workbook_SheetActivate(ByVal Sh As Object) QUESTION...
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2015, 07:35 AM
  4. Byval target in sheet
    By dinakar.yadav in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2014, 08:48 AM
  5. [SOLVED] ByVal problem
    By DimAvr in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-26-2013, 12:04 PM
  6. Change ByVal Macro Question
    By NewExcelUser in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2008, 03:34 AM
  7. ByVal Button As Integer, ByVal Shift As Integer
    By SuitedAces in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-02-2007, 01:10 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