selection.pastespecial

  1. N

    Recognize workbooks by partial name / Recorded Macro / Novice user (very novice)

    Help! my recorded macro is below. My issue is, workbook "billing.xlsm" name will vary such as: "billing 1" or "billing 2" etc. I have tried applying solutions i have read in forums but i might be going about it wrong. Sub Auto_Copy_Invoice_From_Color()...
  2. gheyman

    Copy from one tab to another - code not working

    This is copying what's in columns C:G and pasting them correctly but its not copying the second piece (L11 & LstRw) Sub Grab_BOEs() Dim LstRw As Long Sheets("54_TPL_01_02 Consolidate").Activate LstRw = Range("C" & Rows.Count).End(xlUp).Row 'WBS Number, WBS Title, Task Start, Task End...
  3. D

    Populating and Clearing Fields with a Check Box

    Hi, I am trying to populate and clear fields using a check box. I have written something long and stupid that will not work. Can someone help me. This is what I have: If Sheets("MISC DATA").Range("C18").Value = "TRUE" Then Range("F5:N5").Select Selection.Copy...
  4. T

    Excel VBA special loop through worksheets

    Hi there, I am trying to select informations from sheets 2 to 50. (They do not necessarily exist, I just want the code to run throught all the sheets if I have created a sheet of that name) and paste it to the first sheet of my Workbook. What I want is for the MAcro to pick stuff from that...
  5. S

    Looping across cells, rows, worksheets in VBA

    Hi everyone, I'm new here (thanks for having me) and am a novice user of Excel. I'm struggling with what I'm sure are basic looping issues in VBA, and am hoping that someone could direct me to a useful instructional website or perhaps be kind enough to help me get started in loops. Some...
  6. T

    I need help with copy/paste function in Excel Macro VBA and SUMIFS! Keep drawing blanks!

    Hello, I really need some help! Keep in mind that I use the Record Macro function liberally, so this may have to do with my limited knowledge of actual coding procedures. But here goes my explanation: In Macro Excel VBA, I've coded into VBA the formulas of SUMIFS functions for each column...
  7. U

    Macro Not Executing - Just does one

    I have a macro, and it is only pulling the one macro to print. The formula is not continuing onto the next one. I'm newer at writing code. I've done this both ways using the Call function and just adding the subs into once macro.... Sub RunAll() FW bonbon End Sub Sub ShocoChoc()...
  8. J

    VBA Tips, Tricks and useful Code Snippets

    If you have any to add to this, appreciate it if you would post any you use regularly. I'm fairly new to vba and stuff like this helps with learning. Sorry if something like this has been posted before but couldn't see any: 1. Copy + Paste Values Instead of this: Range("A1:A10").Select...
  9. S

    Finding the next row when there are blanks in the previous row

    Hello i am trying to figure out how to paste a range of cells on to the next row when there are a few blanks in the row above. My code keeps overwriting them. Here is my code: Sub GetSheetstest() Dim Path As String Dim FileName As String Dim Sheet As Worksheet...
  10. gheyman

    Debug error on address

    My code doesn't like the first line. The name of the tab is correct Sheets("BOE").Cells("C5:C1015").Selection.Copy Sheets("Export Load Table").Select Sheets("Export Load Table").Range("A3").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _...
  11. I

    Problem with xldown using relative reference

    Can anyone help me with this code? The range is only selecting 2 cells down from the active cell each time, instead of to the last cell with data. Selection.Copy ActiveCell.Offset(1, 0).Range("A1", Range("A1").End(xlDown)).Select Selection.PasteSpecial Paste:=xlPasteValues...
  12. G

    memory leak?

    I've been using the following code for a few years to flip spreadsheet data around without issue. Recently however I received a large data set (about 5X larger than those I typically work with and the macro eventually runs out of resources and stops. Typically this runs instantly. I've tried...
  13. S

    Preventing Data Douplication in Excel

    Hi all, i'm new to VBA so I do need some help. I'm trying to create some macros to help me accelerating my repeatable steps in my workbook. I have just got the way to correct the duplication when it occur but I hope you can help me to find a way to prevent it from happening. Here is the details...
  14. 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...
  15. E

    Problem with 'FillAcrossSheets in Excel 2013 VBA

    I am trying to run the following routines in vba for Excel 2013 I want to insert this equation across all my sheets With ThisWorkbook.Worksheets .Item(1).Range("C29").Formula = "=NGL(+$A$29,+$B$1,+$B$6,+$B$4)" .FillAcrossSheets .Item(1).Range("C29"), xlFillWithAll End With With...
  16. R

    Code efficiency

    This code from the Excel Macro Recorder works, and does what I need, but it is not efficient. Can someone please help me and make it more efficient? Thank you in advance for your assistance! Robert Sub Macro1() ' ' Macro1 Macro 'Round 1 Topic 1 Question $100 ' ' Sheets("Setup Page").Select...
  17. 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...
  18. 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...
  19. 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...
  20. 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...

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