I would like to be able to copy a list of information I exported from a database into my worksheet I have developed to analyze the information. I already have a list of data in the worksheet but would like to add the new information to it. I need to be able to copy from the exported csv file and paste it to the end of the data that is already in my worksheet. Here is the code I have developed so far. Instead of copying A2:T1500 I would like to be able to copy "All data" and instead of pasting to B58 I'd like to paste to "first empty row".
![]()
Sub ImportCSV() Dim fileName As Variant fileName = Application.GetOpenFilename(FileFilter:="CSV files, *.csv") If fileName <> False Then Workbooks.Open fileName Range("A2:T1500").Copy ThisWorkbook.ActiveSheet.Range("B58") ActiveWorkbook.Close SaveChanges:=False End If End Sub
Bookmarks