pastespecial

  1. R

    PasteSpecial not working properly

    Hallo everyone, I have a problem with a pasteSpecial function in my macro. I want to copy a few Excel-sheets from one workbook to the other. For the first sheet it works fine, but for the second one not. When I debugg, I see that by "copy"-order the sheet I want is actually copied (it gets...
  2. J

    Error '1004' cannot paste table with VBA

    I am trying to copy table content from table [Table_eudaxrep.driscolls.com_EUDaxViewReport] (let's call this one TableSource) on worksheet [Data] to another table [Table_eudaxrep.driscolls.com_EUDaxViewReport3] (let's call it Table3) on worksheet [Filtered_Data] after I have deleted all content...
  3. R

    PasteSpecial method of Range class failed

    I have tried the suggestions in quite a few different threads to solve the problem that I am encountering. I am trying to copy a Range of cells in a column on one sheet and transpose paste them on another sheet. Sub MoveWell(TCDesc, OnStream, WellCnt) Sheets(TCDesc).Select...
  4. C

    How can I get Pastespecial to paste a textbox and not an image?

    I am using the below code to create a PPT presentation with each slide representing a company asset and some information on it. I am trying to get the Range("V6:W6") to paste as a textbox in the powerpoint but it is only pasting as a textbox. Range("V6:W6").Copy mySlide.Shapes.PasteSpecial...
  5. D

    PasteSpecial method of Range class failed

    Hi im trying to run a bit of code thats always worked fine before and has not been recently changed however now im getting this error "PasteSpecial method of Range class failed" when getting to the line in red below Selection.EntireRow.Hidden = False 'unhidden Range("A" &...
  6. H

    Paste special from multiple workbooks in a folder to a master workbook

    Hi Excel PROs I need some help. I'm trying to paste values from all files in a folder to a master folder but i keep getting errors in the paste process. This is my code: Sub LoopThrough()Dim MyFile As String Dim erow Dim FilePath As String Dim DestWB As Workbook Dim SourceWB As Workbook...
  7. U

    VBA Copy & Paste Special

    Hello, After many searches through your forum and on Google, Ive given up and having to resort to help on the forum. Im trying to copy a range of text from my main sheet and paste it to subsequent sheets - that part works fine. Next Im trying to copy the formatting and paste only the...
  8. T

    VBA: Run-time Error 1004: PasteSpecial

    Hello wonderful Excel gurus, I have a bit of VBA code I could use help with. It's fairly straight-forward. Based on two cells, tt looks up a value in another workbook, copies it, closes that workbook, and pastes the value where I want it. However, I'm getting a 1004 error. Here's the code...
  9. S

    Problem executing multiple cut and paste operations in VBA

    I have a workbook with 40 or so tabs in it. 30 of the tabs are for scorecards and 10 are for feeder data and charts. The workbook is essentially a Supplier Scorecard. The code I wrote gives me no compile errors, however it is not changing all of the sheets. I am fairly new to VBA so I am sure it...
  10. A

    Copy and Pastspecial only copying 5 rows of data

    Hi, I've ben pulling my hair out trying to figure out this simple code. It's supposed to copy values and formatting only from selected rows from a table in one worksheet to another worksheet, removing blanks and duplicates . I've tried multiple ways, which either work and then stop working...
  11. L

    VBA: “Can't find project or library” when using PasteSpecial

    Hello, I'm trying to copy charts from an Excel workbook to placeholders in a Powerpoint presentation. Below are the codes I'm using: <code>Sub Pwp() Dim wb As Workbook Dim ppt As PowerPoint.Presentation Dim pptApp As PowerPoint.Application Dim sld As PowerPoint.Slide Dim shp As...
  12. J

    Copy and Paste Special

    I have a code to open a file on a shared drive. I am able to copy and paste the contents of a worksheet, however I would like to paste special with formatting and values. Additionally, the copied material is grouped and I would like to paste it ungrouped. Here is the code I have thus far: Sub...
  13. E

    Updating a powerpoint with changes form excel

    I've got a macro building a powerpoint presentation from my excel spreadsheet. I really want the powerpoint to update when I save changes to excel (probably using link?) but I can't figure out the syntax. The section of code I have right now is: 'Loop through each chart in the Excel worksheet...
  14. M

    VBA error "can not execute in break mode" when paste

    Dear all, I am trying to paste a formula in a range it says "can not execute in break mode". Please take a look into my code below. Dim lngMyRow As Long Dim lngStartRow As Long Dim lngLastRow As Long Dim rngMyRange As Range Application.ScreenUpdating = False...
  15. C

    Copy Range formatting only

    I'm a bit brain dead tonight and cant make this work. Simply trying to copy the range from N4:N5 to the entire columns of O and T, both starting in row 4. Row length will be variable from sheet to sheet. Here is what I have.
  16. R

    VBA Entire Row PasteSpecial Values multiple errors

    Hi, I have set up the below to copy any rows which contain a matching PO value from one sheet and put them into another sheet in. Sub InpInvExtSbc() Dim oPO As String Dim LR As Long, i As Long oPO = Sheets("Input Invoice").Range("L9") & "-" & Range("L20") With Sheets("External Subcontract")...
  17. A

    Problem with formatting in code - column pasting

    See code below. Sub runallmacros() Dim wbSource As Workbook Dim wsDest As Worksheet Dim row As Integer, os As Integer Set wsDest = ThisWorkbook.Worksheets("File Copier") row = 2 os = 0 With wsDest Do While .Range("K" & row).Value <> ""...
  18. 9tanstaafl9

    Copy Visible Columns VALUES and FORMAT - is this possible?

    I have to copy data from sheet 2 to sheet 1. Sheet 2 has a bunch of hidden columns (I don't know which they will be ahead of time). This works to paste formulas, but I need values: Sheet2.Range("B8:AM28").SpecialCells(xlCellTypeVisible).Copy Destination:=Sheet1.Range("A12") I must past...
  19. T

    Question to keep Formatting to another WB via VBA.

    Okay, I've been searching all morning and I'm having trouble getting this code to work: Sub CommandButton1_Click()MyBook = ActiveWorkbook.Name ' Retrieves the name of original WB. Columns("A:A").AutoFit Columns("B:B").AutoFit Columns("C:C").AutoFit Columns("D:D").AutoFit Range("A5:D500").Select...
  20. J

    Pastespecial from Excel 2010 to Word 2010

    Thank you for reading:pray: ;) I want to copy a range from Excel containing formatted text in cells to Word. This is what I have so far: Sub ExcelToWord() Dim wdApp As Object Dim wdDoc As Object Set wdApp = CreateObject("Word.Application") Set wdDoc = wdApp.Documents.Add wdApp.Visible = True...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top