George
Member
Hi all,
unusual problem here:
I'm importing data from one excel spreadsheet to another using the following code:
and for some reason it merges some data in a few columns so that rather than 84,328 columns I have 83,696.
I'm guessing that it's probably something to do with the fact that I'm closing the workbook before pasting, but I'm not totally sure how to deal with that - any suggestions or other things that could be causing it?
There's no way it's a shortage of RAM or anything else like that (fairly high spec computer), and in case it matters I'm running excel 2013.
Cheers,
George
unusual problem here:
I'm importing data from one excel spreadsheet to another using the following code:
Code:
Cells.Select
Selection.Copy
SourceWBName = ActiveWorkbook.Name
Application.DisplayAlerts = False 'turning off alert boxes like "there's a lot of data in the clipboard" etc.
If ActiveWorkbook.Name <> ThisWorkbook.Name Then 'Double sure we don't close this workbook
ActiveWorkbook.Close False
End If
ThisWorkbook.Activate
ActiveSheet.Paste
I'm guessing that it's probably something to do with the fact that I'm closing the workbook before pasting, but I'm not totally sure how to deal with that - any suggestions or other things that could be causing it?
There's no way it's a shortage of RAM or anything else like that (fairly high spec computer), and in case it matters I'm running excel 2013.
Cheers,
George