+ Reply to Thread
Results 1 to 1 of 1

Using Same Copy Paste VBA in Mac 2011 ver Not Working

Hybrid View

  1. #1
    Registered User
    Join Date
    03-19-2015
    Location
    Pleasant Grove, UT
    MS-Off Ver
    MAC 2011
    Posts
    1

    Using Same Copy Paste VBA in Mac 2011 ver Not Working

    I have this macro I've modified multiple times now to get to work in the Mac version of Excel. Each step individually does what it is suppose to do, but when combined it breaks down.

    Any help would be much appreciated. Here is the code:

    Sub DOALL()
    
    'Order of Operation
        '1. Paste Data from another source in Temp Sheet (values only)
        '2. Delete Data from PasteData Sheet
        '3. Go back to Temp Sheet and copy data to clipboard
        '4. Go back to PasteData Sheet and paste data copied to clipboard
        '5. Go back to Temp Sheet and delete data
        '6. End Macro by selecting Graph sheet and Send Received Message Box
    
    '1. Paste Data from another source in Temp Sheet (values only)
    
        Sheets("TEMP").Activate
        Range("a1").PasteSpecial Paste:=xlPasteValues
        ActiveSheet.Range("A1").Select
        
    '2. Delete Data from PasteData Sheet
    
       Sheets("PasteData").Activate
       Sheets("PasteData").Cells.ClearContents
       ActiveSheet.Range("A1").Select
       
    '3. Go back to Temp Sheet and copy data to clipboard
    
        Sheets("TEMP").Activate
        Sheets("TEMP").Cells.COPY
        ActiveSheet.Range("A1").Select
        
    '4. Go back to PasteData Sheet and paste data copied on clipboard
    
        Sheets("PasteData").Activate
        Range("a1").PasteSpecial Paste:=xlPasteValues
        ActiveSheet.Range("A1").Select
        
    '5. Go back to Temp Sheet and delete data
    
       Sheets("TEMP").Activate
       Sheets("TEMP").Cells.ClearContents
       ActiveSheet.Range("A1").Select
    
    '6. End Macro by selecting Graph sheet and Send Received Message Box
    
    Sheets("Graph").Select
    
    MsgBox "Received " & Sheets("PasteData").Range("D1").Value & " Data"
    
    End Sub
    Last edited by scott.a212; 03-19-2015 at 10:34 AM.

+ 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. Copy paste - cute paste macro almost working
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 12:33 PM
  2. How can I copy-and-paste hyperlinks from a website to a spreadsheet in Excel for Mac 2011?
    By RexLafferty in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 02-28-2013, 02:04 PM
  3. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  4. Replies: 2
    Last Post: 03-27-2012, 02:49 PM
  5. Replies: 0
    Last Post: 05-24-2011, 12:33 AM

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