Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Leon Hansen   on Nov 13 In MS Office Category.

  
Question Answered By: Nathan Evans   on Nov 13

Do this.

sub CopyToWorksheets()
i = 1 'starting row of cell containing data

sheets(1).select
with activesheet
do while .cells(i, 1) <> "" 'checks for end of data
i = i + 1
loop
range("A" & 1 "X:" & i).copy 'copy range  of data starting with cells
A1 to last row of column X
for n = 2 to sheets.count 'start with copying data to sheet 2, sheet
3, etc...
sheets(n).select 'select sheet to copy data into
range("A1").select
activesheet.paste
next n
sheets(1).select
range("A2").select
end with
end sub

Share: 

 
 
Didn't find what you were looking for? Find more on EXCEL Range and Label Names Or get search suggestion and latest updates.


Tagged: