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, formula,...) To Copy columm in various sheet's


I have a file in excel with various sheet's, i want to copy the columm H
(from all the sheet's) and paste in only one columm in the same file (or
another), in a automatic way (macro, formula,....).
How can this be done?????

PS. The columm contains numbers (with formulas), and it's in Excel 97


Thanks
:-D


--
pmarques
------------------------------------------------------------------------
pmarques's Profile: http://www.excelforum.com/member.php...o&userid=25110
View this thread: http://www.excelforum.com/showthread...hreadid=387118

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default (macro, formula,...) To Copy columm in various sheet's


Don Guillett Wrote:
A better explanation/example of what you want


+-------------------------------------------------------------------
|Filename: test.zip
|Download: http://www.excelforum.com/attachment.php?postid=3599
+-------------------------------------------------------------------

--
pmarque
-----------------------------------------------------------------------
pmarques's Profile: http://www.excelforum.com/member.php...fo&userid=2511
View this thread: http://www.excelforum.com/showthread.php?threadid=38711

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default (macro, formula,...) To Copy columm in various sheet's

untested...

Dim iLastRow As Long
Dim iNextRow As Long
Dim sh As Worksheet
Dim shSumm As Worksheet

Set shSumm = Worksheets.Add
shSumm.Name = "Sum,mary"
iNextRow= 1
For Each sh In Activeworkbook.Worksheets
If sh.Name < shSumm.Name Then
ilastRow = sh.Cells(Rows.Count,"H").End(xUp).Row
sh.Range("H1").Resize(iLastRow).Copy _
shSumm.Range("H" & iNextRow)
iNextRow = iNextRow + iLastRow
End If
Next sh

--

HTH

RP
(remove nothere from the email address if mailing direct)


"pmarques" wrote in
message ...

I have a file in excel with various sheet's, i want to copy the columm H
(from all the sheet's) and paste in only one columm in the same file (or
another), in a automatic way (macro, formula,....).
How can this be done?????

PS. The columm contains numbers (with formulas), and it's in Excel 97


Thanks
:-D


--
pmarques
------------------------------------------------------------------------
pmarques's Profile:

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



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
<ASK How to add columm more than the default columm IV johannes Excel Discussion (Misc queries) 3 September 16th 08 06:03 PM
formula to insert a row of consective numbers in a columm (1tru 5 ray Excel Worksheet Functions 2 October 22nd 07 08:20 PM
How to copy a sheet's formatting from one xls to another? John Dalberg Excel Discussion (Misc queries) 2 October 16th 07 04:18 PM
What is the formula for adding up *values! in a columm in exell Larry Charts and Charting in Excel 1 October 20th 06 08:30 AM
(macro, formula,...) To Copy columm in various sheet's pmarques Excel Discussion (Misc queries) 0 July 14th 05 12:25 PM


All times are GMT +1. The time now is 06:52 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"