> thanks it works now but it takes a while to run.. there are like 20 sheets
> but isnt there a way to speed up?
[quoted text clipped - 49 lines]
> > > > > > >
> > > > > > > thanks.
This is how my code looks like now, it still took 2-3mins to run and froze
all other excel applications..
Sub concatenate1()
Application.ScreenUpdating = False
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Select
Lastrow = Range("C65536").End(xlUp).Row
Set myrange = Range("C1:C" & Lastrow)
For Each c In myrange
c.Offset(0, 2).Value = c.Value & " , " & c.Offset(0, 1).Value
Application.ScreenUpdating = True
Next
Next ws
End Sub
thanks.
> Try
>
[quoted text clipped - 57 lines]
> > > > > > > >
> > > > > > > > thanks.
Mike H - 17 Jan 2008 12:58 GMT
Gemz,
I have a run of the mill laptop and my machine concatenated 100k records
across 3 worksheets in 12 seconds so it's one of a few things:-
You have a very large amount of records
Your PC processor time is being divided between this and other tasks
Your PC is slow
I don't see how the code can be significantly improved.
Mike
> This is how my code looks like now, it still took 2-3mins to run and froze
> all other excel applications..
[quoted text clipped - 78 lines]
> > > > > > > > >
> > > > > > > > > thanks.
Gemz - 17 Jan 2008 13:02 GMT
yes there is quite a large amount of data.
ok thanks for helping.
> Gemz,
>
[quoted text clipped - 91 lines]
> > > > > > > > > >
> > > > > > > > > > thanks.
Gemz - 17 Jan 2008 15:54 GMT
Sorry to bother you again but i have a quick question about the below, would
the macro work fine if the workbook is emailed across to someone else for
them to use the macro? they would probably assign the macro to a toolbar
button.. obviously the workbook would need to be opened for the macro to work?
thanks.
> This is how my code looks like now, it still took 2-3mins to run and froze
> all other excel applications..
[quoted text clipped - 78 lines]
> > > > > > > > >
> > > > > > > > > thanks.