+ Reply to Thread
Results 1 to 2 of 2

Writing data to DLL file ...

  1. #1
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Writing data to DLL file ...

    Hi all;

    What I want to do is; to embed a DLL file into the worksheet and then export the DLL file to harddisk when needed.

    I have imported the DLL file into the sheet by reading each byte and writing into the cells. It takes about 5 minutes to complete the process. Btw, the imported DLL file size is about 3 MB. (i.e. almost 3 columns of the sheet are full)

    So far, this part of the job is nearly OK ...

    Then, I export the DLL file by reading from the cells that have been written before ... by the code given below. But it takes about 2 hours to complete the job

    The code has Application.ScreenUpdating = True for now, just to see the progress going on which is shown in cell M1 formatted as "%"

    I want to know if there is any other method to speed up the process....

    The code for exporting the data is;

    Please Login or Register  to view this content.
    .
    Last edited by Haluk; 02-18-2019 at 04:50 PM.

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Writing data to DLL file ...

    As of now.... by using a string builder class (which is coded by one of my friends), now it takes about 30 minutes to write the bytes to the DLL file.

    But there is also some other problems as well.... such as, bytes are not exported correctly. I was facing the same problem with the code given in the previous message also.

    Is there anybody having an idea about correcting the byte problem?

    .

+ 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. [SOLVED] Write Sub procedure to format excel and write case/if statement to text file
    By vbronton in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2018, 08:26 AM
  2. VBA Code convert data to tab delimited and write data to text file | Not Working
    By lbl159 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 06:40 AM
  3. Write data to Sharepoint file
    By johnny_p in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2015, 07:51 AM
  4. Read/Write Raw Data from TXT File
    By jasperhuang93 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-23-2012, 11:00 AM
  5. Write data to a file
    By austindude in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-05-2009, 08:50 AM
  6. [SOLVED] Open CSV file, format data and write output to a text file.
    By BristolBloos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 11:05 AM

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