Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Colleen Burton   on Mar 03 In MS Office Category.

  
Question Answered By: Frank Butler   on Mar 03

Thanks for the reply. I did that. These are the stps i followed.
1. Selected all the ranger to be sorted.
2. Sorted the excel  sheet so that the blank rows  come all the way on the end.
3. i recorded that macro and saved it in my personal folder.
4. the code saved is as follows.

Range("A2:E2").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Range("A2:E2992").Select
Selection.Sort Key1:=Range("A2"), Order1:=xlDescending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
ActiveWindow.SmallScroll Down:=-543
ActiveWindow.ScrollRow = 2
Range("A3").Select
ActiveWindow.SmallScroll Down:=-3

5. after gettign done i stopped the macro recorder.

now my question  is if the number of rows keep on increasing, this macro wont run
the rows more than what this macro recorded. So how do i need to take care of
it.

secondly, i was thinking, whenever the mail file is update  is there a way that i
can save a copy of it automatically  at a different location, and then import
from that location. I need to do this is because of permissions.

Share: 

 

This Question has 10 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Question about importing Excel. Or get search suggestion and latest updates.


Tagged: