pastespecial

  1. V

    Data import from web, problem in Activesheet.Pastespecial in Excel 2003 though working perfectly in Excel 2007

    Hi All, Thanks for looking at the post. I have written code to select all (from webpage), copy and paste (in excel sheet) in Excel 2007 and it is working perfectly. But when my client who uses this program on 2003 version, he gets Error 1004. "Class worksheet pastespecial' Following is the...
  2. K

    VBA copy paste between two books. 104 Paste Special method

    Hi, I found a number of similar topics, however it did not help my code. Range from opened workbook should be copied into new opened file test and saved. This is a piece of code: Set Sheet = ThisWorkbook.Sheets("store data") Sheet.Range(Cells(i, 4), Cells(i + 365, 19)).Copy...
  3. T

    Paste Formats, number formats and formulas

    Have seen posts on how to paste "Values and Formats" or "Number formats and formulas". I am looking to find a way for VBA to paste both formats and formulas all at once if possible. Currently I am copy and pasting the format and then going back and pasting the formulas in a second step.
  4. L

    VBA code to transfer data from one worksheet to others using specific criteria

    hi, I have been searching for a solution for some time now and hope that someone can help me! i have a workbook that contains a number of sheets. sheet1 is titled "From" and is my data entry sheet. the other sheets are named with a contract number and an abbreviation of the contract type. ie...
  5. S

    Copy Selection Sheet1, Paste Values First Open Row Sheet2

    Good afternoon all, I am trying to develop a simple macro to on button click transfer the data on sheet1 (for example called "Notes") to the first open row on sheet2(for example called "Log"). Below is where I am at right now, which gives me the result after clicking where I can see it shifts...
  6. T

    "Run-time error '1004'" pastespecial method of Range class failed

    I am not facing an error with this code on my computer but when i try yo work on another one with same hardware and excel version (2010 proffesional), it gives this error "runtime error 1004 worksheet class pastespecial failed". I am new and i will use this code my mini-project, thank you for...
  7. M

    PasteSpecial - Keep Source Format, but do not embed

    Hello and thank you for your expertise. I am creating a macro that moves charts/ data from Excel to Powerpoint. I have been given the feedback that the created PowerPoint is too large. When I paste excel data into powerpoint, it is embedding the entire spreadsheet. If I (outside of vba...
  8. M

    Runtime error 1004 when using pastespecial method

    Hello, I am trying to execute the following code, but I get a runtime error 1004 (pastespecial method of range class failed). I have no idea what I am doing wrong. Any help is very much appreciated because this is stressing me out. Sub ReviewedStatusReport() 'Define variables Dim ws1 As...
  9. K

    Paste range as image into mail body

    Hi all, I've been looking around like crazy trying to find a way to send an range from excel via email in the body as an image. Found multiple ways of doing it with either an attachment or HTML but both really wont work for me. The reason html wont work is because I have some formatting which...
  10. D

    Paste to visible cells only (without VBA or VLOOKUP)?

    Hi All, I've been trying to solve a long-standing bug bear that's got me stumped. To give an example: > In WorkbookA, A1 = "Customer A", B1 = 1000; A2 = "Customer B", B2 = 0; A3 = "Customer C", B3 = 500. Row 2 is hidden. > In WorkbookB, I have A1 = "Customer A", B1 = 1000; A2 = "Customer C"...
  11. Z

    Problem with PasteSpecial

    Hi there! Can anyone help me with such a simply looking issue,please? I use a sheet with some design, including fields for input by user. To prevent destroying my design, I would like to let users input datas only as a paste without formatting the cell. So I typed in this VBA code...
  12. W

    VBA copy paste format - font color changes from white to red when pasted

    Hi, I'm using VBA to copy the format of a cell from one workbook to another. Here is the code: Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False When I paste with this code it works perfectly fine on my workstation using both...
  13. J

    VBA theory of why Paste is in Worksheet and PasteSpecial is Range?

    VBA: On a theoretical or speculative level, can anyone explain why .Paste is a method of Worksheet but .PasteSpecial is a method of Range? It seems both should be within the same. Thanks.
  14. J

    Looking for VBA code to Paste Special Value only if cell in Range is Populated

    Hey everyone, First time post on here. I figured I can reach out to some of you guru's as I've been trying to figure this out on my own, and haven't been able to. I'm trying to find a way to paste special value cell(s) in a range ONLY if the cell contains a number. The attachment should help...
  15. B

    Building code.. Count... formula

    I am struggling getting a code built that will count all the data point from L3 down then paste formula =ABS(L4-L3) from cell V4 down to the same row as the last data point in L. (If V4 = ABS(L4-L3) then V5 = ABS(L5-L4) and so on till the last data point row) If it helps, I already have the...
  16. N

    Copy and Paste Special - Copy Excel Data to PowerPoint

    Hello, I need some help copying and pasting data from Excel to PowerPoint via VBA. I have a range of data that I want to copy from Excel and Paste this range to PowerPoint. The data range is essentially a table of data with formatting. The problem that I am running into is that I want the...
  17. S

    Referring to Sheet Name as Variable gives "Subscript Out of Range" Error

    Today's not my day :P Here's post number 2...I've created an error handler to create a worksheet if it doesn't exist. It creates the spreadsheet and names it after the year of a date that I've captured. On the line I've marked below, it gives me Run-time Error 9. I know it's catching on the...
  18. J

    Pasting multiple ranges as Bitmaps into Word + Editing them

    Hi excel masters, I'm very new to VBA (this is my first post) and I'm trying to write a complicated code that will select a varying number of 32 row x 8 column boxes and paste them into a new word document as bitmap images, one on each page. I'm also trying to format each bitmap picture with a...
  19. R

    PasteSpecial method of Range class failed

    I've been reading like posts on mrexcel.com for an hour - but still cannot fix my problem. I have what I think should be a pretty basic code to copy visible cells in one sheet, then paste values in the next sheet. I continue to get a run-time 1004 "PasteSpecial method of Range class failed"...
  20. T

    Run Time Error '1004' PasteSpecial method of Range class failed.

    So it worked perfectly!... Until I tried to use it for some additional cells that I wanted to copy from the temp file to the active worksheet "overview". What am I doing wrong? The error I recieved is as follows: Run Time Error '1004' PasteSpecial method of Range class failed. See code...

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