+ Reply to Thread
Results 1 to 2 of 2

macro doesn't work anymore

  1. #1
    Forum Contributor
    Join Date
    11-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    229

    macro doesn't work anymore

    Hi all,

    For some reasons this macro doesn't work anymore, I'm not an expert so I can't fix it. The macro has been programmed to work when the folder "Plough Log Processing" is placed in the desktop, directory "C:\Users\Processing\Desktop\Plough Log Processing", or else, when I run the macro I get right away the error:

    ChDir "C:\Users\Processing\Desktop\Plough Log Processing"
    Workbooks.Open Filename:= _
    "C:\Users\Processing\Desktop\Plough Log Processing\Template - Plough KP xx.xxx-KP yy.yyy.xlsx"

    The macro works the files within the folder in order to format the data and create a graph, I just have to make sure that the 2 files "Plough_Log_140911000008_NPOUT615-8.npd" and " kp000.139_kp023.755_140910151341_140911061356.nav " are within the right limits, and they are.
    So if you run the 3rd macro in the list, the underlined in the screenshot, from the attached Template - Plough KP xx.xxx-KP yy.yyy.xlsx , and you give the correct kp limits, for this example, when prompted, you can insert "initial kp = 2.000 , final kp= 3.000 " at this point, the macro should work the magic and create the graph, but for some reason it gets stuck at this:

    type mismatch

    Range("G1").FormulaR1C1 = "=CONCATENATE(20,(MID(RC[4],12,6)))"
    File_Date = Range("G1")

    ..... there something wrong with the range G1, but I'm not really sure what's the issue, as I haven't been doing anything different.

    Please let me know if someone can help
    thanks!
    Alex
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: macro doesn't work anymore

    The only Excel files in your uploaded zip folder is a .xlsx file and hence doesn't contain any macros.

    We need to see the file that contains the macro that you are saying doesn't work.

    Whilst I'm here would you change the location in your profile to something more sensible than Mars. We ask these things for a reason.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Script doesn't work anymore (auto hide rows and columns
    By Crispy85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2013, 02:17 AM
  2. Powerpoint macro to paste and format doesnt work anymore
    By mikeTRON in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2013, 07:44 PM
  3. Excel 2007 : Paste special doesn't work anymore
    By eva000 in forum Excel General
    Replies: 2
    Last Post: 03-23-2012, 09:14 AM
  4. File doesn't recognize itself anymore
    By Macro-wave in forum Excel General
    Replies: 2
    Last Post: 10-22-2010, 12:23 PM
  5. [SOLVED] How do you get rid of a link that doesn't exist anymore?
    By esparzaone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2005, 01:06 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