+ Reply to Thread
Results 1 to 3 of 3

Macro error for simple copy and paste macro's

Hybrid View

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Macro error for simple copy and paste macro's

    G'day Excel forum

    I hope this is a simple one; I'm trying to run a code that will copy the content of a cell into the next blank cell in a given range.

    I was able to find a code that should do this here; http://www.mrexcel.com/forum/excel-q...lank-cell.html

    To work out this code I generated a spreadsheet with the exact same ranges, used the exact code they used and add a button to run the macro.

    Frustratingly I keep getting an error message; "Cannot run the macro 'Book1.xlsm!Button2_Click'. The macro may not be available in this workbook or all macros may be disabled."

    As far as I can tell macros are enabled

    Am I missing something?

    Does anyone have any idea whats going on here? I've been googling for hours with no success...

    Regards

    MattRNR
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-03-2009
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2010/13
    Posts
    8

    Re: Macro error for simple copy and paste macro's

    Hi Matt - there is no macro assigned to the button... Right click on the button and select 'assign macro' - you will see your macro called 'test' listed and can select it.
    Regards
    Dave

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: Macro error for simple copy and paste macro's

    Wow... I had hoped that was going to be simple, but that was just embarrassingly so, I mean I spent hours on that... I feel like an idiot...
    Cheers Dave, I'll chalk that one up to sleep deprivation on my part...

+ 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] Unable to replicate simple macro process/unable to compose simple copy paste macro
    By MattRNR in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-06-2015, 04:51 AM
  2. [SOLVED] What's a simple copy paste macro for this?
    By manzier in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-29-2014, 07:02 PM
  3. My macro needs a couple tweeks- Fairly simple copy and paste macro
    By wiebs2334 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 08:02 AM
  4. My macro needs a couple tweeks- Fairly simple copy and paste macro
    By wiebs2334 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 08:23 PM
  5. [SOLVED] Simple copy and paste macro- Paste special help needed.
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 07:02 AM
  6. [SOLVED] Simple copy and paste macro
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-08-2012, 08:16 AM
  7. Simple Copy Paste Macro
    By NavSingh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-02-2007, 11:11 PM

Tags for this Thread

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