+ Reply to Thread
Results 1 to 5 of 5

Need Help with Macro Compile Error

  1. #1
    Registered User
    Join Date
    01-24-2020
    Location
    Arizona
    MS-Off Ver
    2016
    Posts
    3

    Need Help with Macro Compile Error

    I have Excel 2016 and I export a list of checks from my accounting program. I recorded a macro to make the adjustments to the file - formatting, columns, etc. I had no problem in an older version of Excel with this, but now in Windows 10 and Excel 2016 when I record it fresh, I am getting an error message when I try to run it. So far it's highlighting the first line which looks like it's where I select the header row and delete it. Then I insert a column in A1 and put in my Routing number and copy it down, then I format the date and add a column for the code 320. That's pretty much it.

    I don't understand what the problem is.

    Please Login or Register  to view this content.
    If you have any ideas to figure out why it's giving me syntax errors THANK YOU for sharing!

    Carla
    Last edited by jeffreybrown; 01-24-2020 at 05:25 PM. Reason: Please use code tags!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need Help with Macro Compile Error

    Hi Carla,

    Not sure what you have going on here, but there are things in this code which make me ask how it ran at all. Can you attach a sample workbook with a description of what you would like to happen. It should be very easy and straight forward.

    Instructions to add an attachment are above in the yellow banner.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-04-2020
    Location
    Hull, UK
    MS-Off Ver
    2016
    Posts
    60

    Re: Need Help with Macro Compile Error

    There seems to be a lot of stuff missing. I took a guess based on what you've got. Not sure about bottom 3 lines so I commented them out
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-24-2020
    Location
    Arizona
    MS-Off Ver
    2016
    Posts
    3

    Re: Need Help with Macro Compile Error

    Here is my sample workbook. I will try pasting your code and post the results, but my question is this - what is it now so complicated? Prior to 2016 version, I could click record, do my thing, end record and the macro was made. I have never had to mess with code.

    Am I doing something wrong to complicate the process?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-24-2020
    Location
    Arizona
    MS-Off Ver
    2016
    Posts
    3

    Re: Need Help with Macro Compile Error

    I pasted your code over mine and I didn't get an error but when I did CTRL Shift J nothing happened. I saved it all and came back in. I noticed that now in 2016 version I have a Personal spreadsheet popping open in addition to whatever else I'm working on. That's new.

+ 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. Compile Error: compile error constant expression required.
    By countryfan_nt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2019, 04:45 AM
  2. compile error using a macro
    By smoothopia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 10:32 PM
  3. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  4. [SOLVED] first timer using VB to cut and paste macro - getting compile error syntax error
    By jopedder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2013, 11:45 AM
  5. [SOLVED] Compile Error in Hidden Module and Compile Error: Can't find project or library
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2013, 07:03 PM
  6. Macro Error: Compile error: Named argument not found
    By A.S. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2005, 05:15 PM
  7. macro compile error
    By Jan Holmstrom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-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