Export Data with Macro

Magpie98

New Member
Joined
Aug 23, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I can't for the life of me get this macro to work the way I need it to. I've gone through all the threads and I think I know what I need to do, but I'm integrating it wrong.

So the intention is to copy the data in Potential Code (A6:T15) to the Data Dump sheet starting at A2 and then continually adding new data to the bottom of the cells with data already in the sheet.

I have photos of all my data and the macro I have right now, but here it is again:

Sub Export()

Range("A6:T15").Select
Selection.Copy
Sheets("Data Dump").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False

End Sub
 

Attachments

  • Data Dump Tab.PNG
    Data Dump Tab.PNG
    95.7 KB · Views: 13
  • Macro VBA.PNG
    Macro VBA.PNG
    54.1 KB · Views: 13
  • Potential Code Tab.PNG
    Potential Code Tab.PNG
    120.4 KB · Views: 13

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
See if this does what you want:

VBA Code:
Sub Export()
    Sheets("Potential Code").Range("A6:T15").Copy
    With Sheets("Data Dump")
        .Cells(.Rows.Count, 1).End(xlUp).Offset(1).PasteSpecial _
            Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=True, Transpose:=False
    End With
    Application.CutCopyMode = False
End Sub
 
Upvote 0
Solution
See if this does what you want:

VBA Code:
Sub Export()
    Sheets("Potential Code").Range("A6:T15").Copy
    With Sheets("Data Dump")
        .Cells(.Rows.Count, 1).End(xlUp).Offset(1).PasteSpecial _
            Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=True, Transpose:=False
    End With
    Application.CutCopyMode = False
End Sub

That is perfect! Thank you so much for your help!
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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