selection.copy

  1. S

    Activate an Open File

    Hey Guys, I am looping through a directory of files I need to modify. I copy daya from the open file to a temp file, modify it then copy that data back into the source file. Not the most elegant process, but easy for me. The problem I have is activating the source file again after working in...
  2. D

    VBA Help: Copy data to the next available empty cell in another sheet

    Hello, I have attempted to create a VBA which takes data from certain cells on a form and copies them into specified cells in another sheet. The intention is that the code will find the next empty cell of each column. My problem is that the code appears to just overwrite the cells, it works...
  3. L

    A Misbehaving Macro

    I want the below macro to leave the user on cell A3 in the sheet "Crew Satisfaction Data" but for some reason it leaves the user on a different sheet ("Response Calculator") that isn't mentioned at all in the Macro. Can anyone tell me why and how I can fix it? Ewan :O)
  4. A

    Copy all sheets (sheet1, sheet2 etc to 9) and paste to sheet "Master"

    Hello all, i want to find out if there is a better way to copy from sheets1 through 9 and paste to sheet "master" one sheet below the other. here is the code i have cobbled together which does work but maybe there is a more efficient way? ' select the range to copy and paste to "master"...
  5. D

    Need help turning my script into a loop

    Hey guys.....:) Is there a way to turn this into a loop?:confused: Worksheets("Data Entry").Select ActiveSheet.Shapes.Range(Array("Picture 2")).Select Selection.Copy Range("R2").Select ActiveSheet.Pictures.Paste.Select Worksheets("Data Entry").Select...
  6. H

    Macro that transposes data (but looks at groups)

    I have an EXTREMELY large data set in excel with varying data sets (some have 12 lines and some with 18, etc) that are currently in rows that needs to be transposed to columns. All the groupings are separated by a empty/blank line. I started the VBA to transpose this it but dont know how to...
  7. A

    How to repeat VBA and paste result in next row

    Hi am new to vba. How to repeat the commands below and paste results in row C8, C9, etc. Thanks. ' Sheets("Rand").Select Range("A1").Select Calculate Range("A1:A8").Select Selection.Copy Range("A12").Select Selection.PasteSpecial Paste:=xlPasteValues...
  8. B

    Merge all tabs into one & paste values rather than formulas

    Please help! I have a workbook with c300 tabs - all tabs are formatted the same (i.e. same headers) but have different numbers of rows. I know that to consolidate all of these into one sheet I can use: <code class="vb keyword" style="white-space: nowrap; padding: 0px !important; font-family...
  9. M

    Understanding Macros per rows

    I am trying to figure out how to take a macro I have made for Row A. Then if i were to select another row, it would run the same as it did for Row A. My example macro: Sub Macro2() ' ' Macro2 Macro ' ' Range("D1").Select Selection.Copy Range("A1").Select ActiveSheet.Paste...
  10. K

    Better Way To Write This Code

    I have this code: Sub CopyPastefoo2() ' ' CopyPastefoo2 Macro ' ' Sheets("RawData").Select Range("A2").Select Range(Selection, Selection.End(xlDown)).Select Sheets("DataCalcs").Select Range("AF2").Select Range("AF2").Formula = "=IF('RawData Old1'!A2=0,""Base Bid""...
  11. B

    Copy a Combobox and change the linked cell and listfillrange

    I want to copy a template which contains a combo box from sheet "Change_Block" to the sheet "Scope_Changes" this will be one several times, so i don't know te combobox name upfront .. I tried this in a macro .... but the " With Selection" gives the run time error 438: Object doesnt support...
  12. H

    Loop through sheet 1 and copy/paste transpose every 12 rows

    Good Day to all, I am new to VBA, I have Budget data in sheet1 as follow <tbody> A B C D E F G H I J K L M N O P Q R S 1 Comp Div Acct CC PG Dim CURR Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2 905 101 4100 UC000 526 LU1 USD 52 58 53 63 57 56 53 59 57 63 69 72 3 905 102 4215...
  13. N

    For Each wb VBA Issues

    I have a code I've been working on to open files in a folder and see if they meet certain criteria. If so it copies it to another sheet where I am organizing the data I want. The issue I am having is when it finds a file that does not meet the criteria it just ends the code and doesn't continue...
  14. B

    Range(Selection, Selection.End(xlDown)).Select

    Hi, i have encountered a problem to select the columns from B4:E4 to P4:T4. Below is my intial code but it does not work. Union(Range("B4:E4"), Range("P4:T4")).Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy 'P Call uidoc.Paste Please help!!! I need to use...
  15. G

    VBA lookup empty cell and paste value

    Please help me with looking up the empty cell and paste value in the next cell. Windows("Warehouse Schedule.xlsx").Activate Range("C5:M170").Select Selection.Copy Windows("Attendance Report.xlsx").Activate Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone...
  16. D

    VBA - Paste Special

    I have a macro, and at the end of it, I'd like to copy my selection and paste the data right where it is, but paste values only. I have this code: Range("J4:Y4").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy 'Range("J4").PasteSpecial Paste:=x1PasteValues...
  17. A

    Macro/VBA trouble

    Hi, I am working trying to create a macro that will populate different worksheets based on a value in the dropdown selected in the tab called "List". I need the Macro to loop through all the values in the dropdown and populate different tabs based on the value. The name of the tab corresponds...
  18. E

    Recent workbook not showing up in recent menu

    When I open a file through a macro, it doesn't show up in the recents. How can I make it show up? Sheets("RAW DATA").Select Range("A2:K2").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Workbooks.Open Filename:= _ "\\blah\blah\blah\Elimination...
  19. G

    creating a macro that will work everyday copying formulas from row to row

    Hi, I am trying to turn this macro into code that I can use everyday without having to have to change all the ranges daily. i have a report that has several formulas in in row and each day I need to copy and paste the formulas into the next row. the report is daily and built daily with the...
  20. U

    Copy cell formulas

    I have many columns in my spreadsheet Some cells have formulas others do not I tried the following code to improve the creation of all formulas on the worksheet rowM = 16000 Sheets("Sheet1").Select Range("BA4:KZ4").Select Selection.Copy Range("BA5:KZ" & rowM).Select...

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