Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro Help !!!!


Thanks Tom ... what would I need to enter for the range if i wanted t
copy rows 1-6 on another worksheet to ALL worksheets ? I would als
like to put it one row under each of the last rows !


Tom Ogilvy Wrote:
Dim sh1 as worksheet, sh as worksheet
Dim rng as range
set sh1 = worksheets("Sheet_Src")
for each sh in Worksheets
if lcase(sh.name) < lcase(sh1) then
set rng = sh.Cells(rows.count,1).End(xlup)(2)
sh1.rows(6).copy destination:=rng
end if
Next

Without specifics on which sheets get populated and what is bein
copied and
where below the line, the above represents a general approach. I
copies a
row (row 6) from a sheet named Sheet_Src and places it (copies it) t
the
cell/row below the last filled cell on each other worksheet in th
workbook
(except Sheet_Src).

--
Regards,
Tom Ogilvy


"GazMo" wrote in message
...

Hi, I have a series of worksheets in one workbook - I now need t

put
the same information (from another worksheet within the sam

workbook)
in each worksheet under the last line (varying length in each
worksheet) ... can anyone help me with this please ??


--
GazMo


------------------------------------------------------------------------
GazMo's Profile:

http://www.excelforum.com/member.php...o&userid=14610
View this thread

http://www.excelforum.com/showthread...hreadid=271181


--
GazM
-----------------------------------------------------------------------
GazMo's Profile: http://www.excelforum.com/member.php...fo&userid=1461
View this thread: http://www.excelforum.com/showthread.php?threadid=27118

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro Help !!!!

Dim sh1 as worksheet, sh as worksheet
Dim rng as range
set sh1 = worksheets("Sheet_Src")
for each sh in Worksheets
if lcase(sh.name) < lcase(sh1) then
set rng = sh.Cells(rows.count,1).End(xlup)(3)
sh1.rows(1).Resize(6).copy destination:=rng
end if
Next

--
Regards,
Tom Ogilvy


"GazMo" wrote in message
...

Thanks Tom ... what would I need to enter for the range if i wanted to
copy rows 1-6 on another worksheet to ALL worksheets ? I would also
like to put it one row under each of the last rows !


Tom Ogilvy Wrote:
Dim sh1 as worksheet, sh as worksheet
Dim rng as range
set sh1 = worksheets("Sheet_Src")
for each sh in Worksheets
if lcase(sh.name) < lcase(sh1) then
set rng = sh.Cells(rows.count,1).End(xlup)(2)
sh1.rows(6).copy destination:=rng
end if
Next

Without specifics on which sheets get populated and what is being
copied and
where below the line, the above represents a general approach. It
copies a
row (row 6) from a sheet named Sheet_Src and places it (copies it) to
the
cell/row below the last filled cell on each other worksheet in the
workbook
(except Sheet_Src).

--
Regards,
Tom Ogilvy


"GazMo" wrote in message
...

Hi, I have a series of worksheets in one workbook - I now need to

put
the same information (from another worksheet within the same

workbook)
in each worksheet under the last line (varying length in each
worksheet) ... can anyone help me with this please ??


--
GazMo

------------------------------------------------------------------------
GazMo's Profile:

http://www.excelforum.com/member.php...o&userid=14610
View this thread:

http://www.excelforum.com/showthread...hreadid=271181



--
GazMo
------------------------------------------------------------------------
GazMo's Profile:

http://www.excelforum.com/member.php...o&userid=14610
View this thread: http://www.excelforum.com/showthread...hreadid=271181



Reply
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 02:00 PM.

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"