+ Reply to Thread
Results 1 to 3 of 3

Trying to rename a macro but can't.

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Florida
    MS-Off Ver
    Home -Excel 2007, Work 2016
    Posts
    254

    Trying to rename a macro but can't.

    Trying to rename a macro but I get Compile error - Expected: Identifier.
    (see attachment)
    I know - How could someone not know what to do? Well, I am 84 and do not get the oportunity to use macros very often so I do most of mine by recording a macro and then coming here for the fine points.
    Thanks for your help!!
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Trying to rename a macro but can't.

    Open is a designated word so you can't use like you're trying to do.

    You could use something like bOpen or O_pen or any other combination.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Trying to rename a macro but can't.

    Re: Well, I am 84
    Still a young pup.
    Doing great. Keep it up (I mean the coding)

+ 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. Ability to rename multiple files from a path and move and rename to another.
    By X82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2020, 09:54 PM
  2. Rename multiple files in a folder with a macro - Existing Macro update
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-11-2016, 05:39 PM
  3. My File Rename Macro Always Doesn't Rename the Last Three files in the list
    By Enright in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2016, 03:46 PM
  4. RENAME - Multiple files - Macro or not Macro?
    By heatwave in forum Excel General
    Replies: 1
    Last Post: 04-13-2015, 06:08 AM
  5. [SOLVED] Copy a sheet, rename it by value in range then export product to new workbook and rename
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2015, 07:24 PM
  6. [SOLVED] macro to rename the workbook that has been created in the same macro
    By Vogelmann in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-15-2012, 06:01 AM
  7. Macro using file dialog opener - Cannot delete or rename folder when excel macro is
    By startrekremo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2011, 01:57 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