LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Archive Macro

Hi All
I have a macro (see below), that archives information but
needs some fine tuning.
I have two questions that I hope someone can answer.
Firstly, in the selected ranges, they are not always fully
populated. Is it possible for the macro to detect if there
is an entry in P1:P60 AND AC1:AC60 and only allow those
lines that are populated to be archived.
Secondly, I want to add the current date to each row that
has been archived in column "A".

I would appreciate any assistance that can be offered.

Regards
Michael

Sheets("STROKE").Select
Range("E5:P60").Select
Selection.Copy
Sheets("ARCHIVE").Select
Range("B1").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop
Selection.PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("STROKE").Select
Range("R5:AC60").Select
Selection.Copy
Sheets("ARCHIVE").Select
Range("B1").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Select
Loop
Selection.PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

Application.CutCopyMode = False
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Archive for ng? Mr BT[_2_] Excel Worksheet Functions 3 April 16th 07 05:15 PM
Archive Peter F Excel Discussion (Misc queries) 2 March 22nd 07 12:33 PM
archive tikchye_oldLearner57 New Users to Excel 3 October 3rd 06 08:52 PM
Need Archive help Bryan J Bloom Excel Discussion (Misc queries) 0 November 2nd 05 09:49 PM
Archive John Hunt Excel Worksheet Functions 4 November 4th 04 02:14 AM


All times are GMT +1. The time now is 07:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"