Hi,
Currently I'm using:
Is there a faster way to do this that only inserts the values? I do require an insert, not just a paste.![]()
Please Login or Register to view this content.
Hi,
Currently I'm using:
Is there a faster way to do this that only inserts the values? I do require an insert, not just a paste.![]()
Please Login or Register to view this content.
Last edited by stockgoblin42; 05-14-2013 at 03:27 PM.
live logic & long prosper
With Faster, do you mean a faster Macro or a Smaller Macro?
Coz as far as those above codes are concerned, its fast enough..
Cheers!
Deep Dave
I mean faster, plain and simple because it's in a loop that does it hundreds of times.
I recently learned the faster way of copy and paste without the Selecting and Activating and I was wondering if Insert was like that too.
Also, I want to insert just the values as the above does the formulas too and I don't want them.
As far as my knowledge is concerned, there is no faster way. The best you can do is turn Screenupdating to false.
This would increase your macro speed.
Thank You,
Deep
Hi, stockgoblin42,
maybe
where no change of the active sheet is done.![]()
Please Login or Register to view this content.
@Deep:
Any Select or Activate will slow any action down increasingly. ScreenUpdating may speed things up but the slowliness comes from other parts which by using them properly will increase speed without turning Updating off.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Noted!!
Thank You,
Deep
Hello stockgoblin42,
If you don't need to copy over the cell formatting then the quickest way is by direct assignment...
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Hi, Leith,
and that sniplet will insert the cells into the sheet where the values are copied like
from the opening post show? I dare to doubt.![]()
Please Login or Register to view this content.
CIao,
Holger
Hello Holger,
I forgot to mention, for this method to work the ranges must have the same number of rows and columns. The example below will overwrite any previous information on the second sheet.
If the values from the first sheet are to be appended to the existing data then the code would be this...![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Hi,
I'm getting an Expected End of Statement with the Offset highlighted when I replace:
with your suggestion of:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Any ideas Why?
Last edited by stockgoblin42; 05-17-2013 at 10:55 AM.
Hi, stockgoblin42,
I bet you can figure it out by youurself if you count out how many rows there are from 2 to 6 - definitely not 1.
And as mentioned the code would always overwrite the same area.
Ciao,![]()
Please Login or Register to view this content.
Holger
Oh, I'm looking for an insert, definately not an overwrite
something to replace:
but faster, without the selecting![]()
Please Login or Register to view this content.
Hi, stockgoblin42,
maybe have a look at the code provided in my first post in this thread.
Ciao,
Holger
That code is still copying the formulas. I'm just after the values.
I tried adding .Value but no luck.![]()
Please Login or Register to view this content.
Hi, stockgoblin42,
maybe try
Ciao,![]()
Please Login or Register to view this content.
Holger
I rethought it and we missed the obvious:
![]()
Please Login or Register to view this content.
any chance you could help with:
http://www.excelforum.com/excel-form...23#post3247023
thanks for any help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks