Results 1 to 7 of 7

Excel VBA 2010 - Copy to WB, RTE 1004 - That command cannot be used on multiple selections

Threaded View

Sleever Excel VBA 2010 - Copy to WB,... 09-07-2014, 11:31 AM
HaHoBe Re: Excel VBA 2010 - Copy to... 09-07-2014, 11:50 AM
Sleever Re: Excel VBA 2010 - Copy to... 09-07-2014, 01:52 PM
Sleever Re: Excel VBA 2010 - Copy to... 09-07-2014, 12:02 PM
Norie Re: Excel VBA 2010 - Copy to... 09-07-2014, 12:33 PM
Sleever Re: Excel VBA 2010 - Copy to... 09-07-2014, 01:57 PM
HaHoBe Re: Excel VBA 2010 - Copy to... 09-07-2014, 02:26 PM
  1. #6
    Registered User
    Join Date
    09-07-2014
    Location
    Denmark
    MS-Off Ver
    2010
    Posts
    5

    Re: Excel VBA 2010 - Copy to WB, RTE 1004 - That command cannot be used on multiple select

    Hi Norie,

    yes - you are right. I have appologized to Holger.
    I have tried your code. I get error her;

    Sub MailAnalysisSub()
    
    '---------------------------------------
    'Mail the analysis to the end intepreter
    'Area=PrintArea_PaymentRisk
    '---------------------------------------
    
    Application.ScreenUpdating = False
    
    Dim TempWorkbook As Workbook
    Dim Tempsht As Worksheet
    
    RightHereRightNow = ActiveCell.Address
    RightHereRightNow_Sheet = ActiveSheet.Name
    
    '----------
    'Create new Workbook
    Set TempWorkbook = Workbooks.Add
    FolderPath = Application.ThisWorkbook.Path & "\14.ShipReport_Controller" & "\14.ShipReport_SentReportingPackages\"
    Application.DisplayAlerts = False
    
    TempWorkbook.Activate
    Set Tempsht = Worksheets.Add
    Tempsht1 = ActiveSheet.Name
    ActiveSheet.Name = "Tempsht1"
    
    '------------
    ThisWorkbook.Worksheets("Input_Risk").Activate
    ThisWorkbook.Worksheets("Input_Risk").Unprotect
    
    Range("PrintArea_NotPaymentRisk").Copy
    
    With Tempsht.Cells(1, 1)
        .PasteSpecial Paste:=xlPasteValues
        .PasteSpecial Paste:=xlPasteFormats
    End With
    
    'Range("PrintArea_NotPaymentRisk").Select
    '
    'Selection.Copy
    '
    'TempWorkbook.Activate
    'Sheets("Tempsht1").Activate
    'Cells(1, 1).Activate
    '
    'Selection.PasteSpecial Paste:=xlPasteValues
    'Selection.PasteSpecial Paste:=xlPasteFormats
    Excel error: Run-time errot '1004':
    PasteSpecial method of Range class failed.


    wbr
    Ben
    Last edited by Sleever; 09-07-2014 at 02:11 PM. Reason: Updating Excel erro

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 10-21-2013, 02:55 PM
  2. Copy and paste for multiple selections
    By amartino44 in forum Excel General
    Replies: 3
    Last Post: 07-12-2013, 02:34 PM
  3. Replies: 3
    Last Post: 05-16-2013, 06:08 AM
  4. Copy multiple selections in excel 2003
    By John Musbach in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2009, 09:08 PM
  5. [SOLVED] I cannot do the oopy paste command in multiple selections in the .
    By Penny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2005, 12:05 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