Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

microsoft excel training - how do repeat macro

Forum home » Delegate support and help forum » Microsoft Excel Training and help » microsoft excel training - How do a repeat this macro command till it reaches the last spre

microsoft excel training - How do a repeat this macro command till it reaches the last spre

ResolvedVersion Standard

Alistair has attended:
Excel Advanced course

How do a repeat this macro command till it reaches the last spre

How do a repeat this macro command till it reaches the last spreadsheet?



ActiveCell.Cells.Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveSheet.Previous.Select
ActiveCell.Cells.Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveSheet.Previous.Select


Cheers
ALi.

RE: How do a repeat this macro command till it reaches the last

Ali

If you attend one of our VBA courses and bring along your example then we should be able to help resolve this issue.


regards

david

RE: How do a repeat this macro command till it reaches the last

Hi David,

I intend to go on your course... as soon as I get some free time!

Cheers
ALi.

P.S. I have now finished the project that related to the query. I ended up using a work-around.

Excel tip:

Difference between Two Dates

The DATEDIF function computes the difference between two dates. The DATEDIF function is as follows:

=DATEDIF (Date1,Date2,Interval)

Please note that Date1 must be less than (earlier) or equal to Date2

Please note that Interval must be one of the following codes: "d" (in days), "m" (in months), "y" (in years) expressed in quotes


View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.