Hi,
I've made a sheet, macro enabled and have a few macros that run some code. Its a blank sheet, data gets pasted in press a button and the code runs (i'm just being very simple here). There's not a lot of data, columns C:AZ and random in length, the sheets it comes from are like 20kb.
The issue i'm having is when i paste the data in and run the code, this works fine. It deletes columns, cuts and moves them. Finds changes in a specific column and inserts borders for each change and a few more things. Nothing too taxing.
I have a reset code and this is where it slows down, it literally selects the columns
Columns("C:AZ").Select
Selection.Delete Shift:=xlToLeft
Range("C1").Select
Then when i paste different data it takes a good 10 to 15 seconds, then to run the macro it will have a grey screen and takes 3 or 4 times as long to do it.
my only fix is to close it, reopen and it works fine... once
Anyone encountered this before? And is there a simple solution?
Thanks for looking, Steve
I've made a sheet, macro enabled and have a few macros that run some code. Its a blank sheet, data gets pasted in press a button and the code runs (i'm just being very simple here). There's not a lot of data, columns C:AZ and random in length, the sheets it comes from are like 20kb.
The issue i'm having is when i paste the data in and run the code, this works fine. It deletes columns, cuts and moves them. Finds changes in a specific column and inserts borders for each change and a few more things. Nothing too taxing.
I have a reset code and this is where it slows down, it literally selects the columns
Columns("C:AZ").Select
Selection.Delete Shift:=xlToLeft
Range("C1").Select
Then when i paste different data it takes a good 10 to 15 seconds, then to run the macro it will have a grey screen and takes 3 or 4 times as long to do it.
my only fix is to close it, reopen and it works fine... once
Anyone encountered this before? And is there a simple solution?
Thanks for looking, Steve