paste=xlpastevalues

  1. J

    Subscript out of Range Error

    I have very little experiance in VBA and I am trying to fix an Excel macro that is giving me a "Subscript out of range error." What the macro is trying to do is to take data from other Excel workboos, copy that data, and paste the data into the Excel workbook named SixEleven. Here is where it...
  2. D

    vba excel - shorter way to select last row and paste special

    The last row range of the original data set (A:E) needs to replace the last row range of a different set (T:X). What does it need to look like to copy the last row range in A:E over? Sub pastespecial() With ws .Range("T:X").Copy .Range("T1").PasteSpecial...
  3. A

    Speed up VBA code

    I've read using the SELECT function slows down VBA. Is there an alternative method for the following code: Application.ScreenUpdating = False Application.DisplayAlerts = False Sheets("SAR").Select Range("B62:U62").Select Selection.Copy Range("B63:U121").Select...
  4. M

    Specify Current worksheet in a Macro

    Hello everyone! I'm trying to automate the copy process of a certain Sheet to another Sheet in order to create a sum up of a day in my company. So: I have a workbook with 32 Sheets. 31 Sheets for each day of the month. 1 Sheet that works as a "template" to sum up the data of each day. All...
  5. T

    VBA - Extracting Data to another sheet (Need help simplifying vba)

    Hello! My macro below works. However, I believe it's not efficient. Is there a way this can be written to make it more efficient? I basically Frankenstein'd this from other macros, but surprising it works. What this does is it extract months that are in columns to rows and insert the...
  6. P

    Create Macro

    Hi, I have a VBA code,I want to run 200 times for every next row.but I can't.please help. Sub Test() ' ' Test Macro ' ' Range("Q3").Select Range(Selection, Selection.End(xlToLeft)).Select Selection.Copy Sheets("Creator").Select Range("A2").Select...
  7. P

    sheet copy vba copy/paste cells as value

    hello, this code copies a master sheet and turns several cells from formula to value. i have since needed to add a few more cells to "copy/paste as value" how do i add AL11 to paste as value? Sub SheetCopy347() ' ' SheetCopy347 Macro ' ' Sheets("Master 347").Select...
  8. T

    VBA runs but doesn't do anything

    I have workbook Laskutusohjelma.xls where is button which runs macro called "Check" and opens also Varastohallinta.xls file. In the Varastohallinta.xls there is a code in the ThisWorkbook: Public Sub Workbook_BeforeClose(Cancel As Boolean) Call teecsv...
  9. Z

    Loop to copy each row and paste to a new tab 4 times

    I am trying to write a macro to copy each line from columns A to E and paste each row 3 times on another tab. I need this macro to loop through until it hits a blank row. Here is code that I recorded, but I do not know how to make this into a loop. I also have a piece of code that grabs F to I...
  10. V

    Lookup Range - Copy and Paste to Lookup Value

    Private Sub CommandButton3_Click() Set lookup_rng = Range("AO22:AR20") Application.ScreenUpdating = False For Each Cell In lookup_rng If Cell.Value = Range("J20" & "J22").Value Then Range("J23:M24").Copy Cell.Offset(1, 0).Select Selection.PasteSpecial...
  11. V

    VBA Macro in a Macro - Help

    Okay, following macro for whatever reason seems to not be running the Macro I have embedded in it. It is only copying the values that exist in P28:AN28 before I execute the script. So if all the values were $50, the macro would simply copy these values over. If the values were all 0, it only...
  12. V

    Ugly VBA

    Private Sub CommandButton2_Click()If MsgBox("Capacity Payment Structure Up-to-date?", vbQuestion + vbYesNo) <> vbYes Then Run Range("D4").Select Selection.Copy Sheets("Rate Analysis").Select Range("L40").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone...
  13. D

    Speed Up Macro: Populating tabs based on a variable

    Hello, I have a spreadsheet that puts a stock into a specific tab depending on its industry. The trouble I am having is that I sometimes have 2000 stocks this has to cycle through and it takes a significant amount of time. If anyone can think of a way to speed it up I would appreciate it. 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