+ Reply to Thread
Results 1 to 3 of 3

Random issue when running macro

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    2

    Random issue when running macro

    Hi all,

    I have a macro which creates a csv file to be imported to AutoCAD. Sometimes when I run the macro, it opens the VBA highlighting the error on the code "kill xls". It seems to be an overwritten file issue, when I update the xlsm file and run the CSV, the .xlsm file disappears, this happens randomly. The code should delete the existing copy of the file so it can save it over when the file is updated.


    Please find below the function:

    Please Login or Register  to view this content.
    Last edited by Karenba; 07-24-2018 at 12:21 AM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Random issue when running macro

    Welcome to the Forum, Karenba!

    Thank you for adding Code Tags

    Regards.
    Last edited by Winon; 07-24-2018 at 05:24 AM. Reason: Moderation removed
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    07-23-2018
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    2

    Re: Random issue when running macro

    Hi Winon,


    I made the requested changes, hope this works now.

    Regards

+ 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. #REF error happened at RANDOM when running a macro?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2015, 06:04 PM
  2. ThisWorkbook macro issue not running
    By b_rianv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2014, 07:16 PM
  3. Having an issue running a Macro that someone else wrote
    By Sinnapz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2013, 07:03 PM
  4. running a macro then an error of #REF! issue
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2012, 12:09 AM
  5. Running macro more than once issue
    By johnlynches in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2012, 11:03 PM
  6. Pause a random number generator while running a macro
    By healtheplanet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2010, 04:04 PM
  7. 'Active' Cells Issue When Running Macro
    By JamieM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2007, 05:55 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