Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Data Tools - Consolidate Excel 2007

I have 13 worksheets that I need to consolidate onto one sheet. I've tried
using codes from VB and they error out or give unwanted results.

I want to use consolidate from the data tools group. I've followed the steps
provided by help and even though the function appears to execute; no results
show. Can someone help me out?

--
Melanie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Data Tools - Consolidate Excel 2007

Hi Melanie

Try this example with aexample workbook
http://www.rondebruin.nl/copy2.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I have 13 worksheets that I need to consolidate onto one sheet. I've tried
using codes from VB and they error out or give unwanted results.

I want to use consolidate from the data tools group. I've followed the steps
provided by help and even though the function appears to execute; no results
show. Can someone help me out?

--
Melanie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Data Tools - Consolidate Excel 2007

I've tried the VB scripts provided and they error out at:

'Find the last row with data on the DestSh
Last = LastRow(DestSh)

--
Melanie


"Ron de Bruin" wrote:

Hi Melanie

Try this example with aexample workbook
http://www.rondebruin.nl/copy2.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I have 13 worksheets that I need to consolidate onto one sheet. I've tried
using codes from VB and they error out or give unwanted results.

I want to use consolidate from the data tools group. I've followed the steps
provided by help and even though the function appears to execute; no results
show. Can someone help me out?

--
Melanie


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Data Tools - Consolidate Excel 2007

Hi Melanie

When you read the information above the macro it say

Important:
The macro examples use the LastRow or LastCol function that you can find in the last section of this page.

So copy the function also in the same module as the macro.
Let me know if you need more help



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I've tried the VB scripts provided and they error out at:

'Find the last row with data on the DestSh
Last = LastRow(DestSh)

--
Melanie


"Ron de Bruin" wrote:

Hi Melanie

Try this example with aexample workbook
http://www.rondebruin.nl/copy2.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I have 13 worksheets that I need to consolidate onto one sheet. I've tried
using codes from VB and they error out or give unwanted results.

I want to use consolidate from the data tools group. I've followed the steps
provided by help and even though the function appears to execute; no results
show. Can someone help me out?

--
Melanie


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Data Tools - Consolidate Excel 2007

Yes, I read that but, I don't understand where in the series of commands do I
insert the additional function. The directions don't provide enough detail
for a novice.
--
Melanie


"Ron de Bruin" wrote:

Hi Melanie

When you read the information above the macro it say

Important:
The macro examples use the LastRow or LastCol function that you can find in the last section of this page.

So copy the function also in the same module as the macro.
Let me know if you need more help



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I've tried the VB scripts provided and they error out at:

'Find the last row with data on the DestSh
Last = LastRow(DestSh)

--
Melanie


"Ron de Bruin" wrote:

Hi Melanie

Try this example with aexample workbook
http://www.rondebruin.nl/copy2.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I have 13 worksheets that I need to consolidate onto one sheet. I've tried
using codes from VB and they error out or give unwanted results.

I want to use consolidate from the data tools group. I've followed the steps
provided by help and even though the function appears to execute; no results
show. Can someone help me out?

--
Melanie




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Data Tools - Consolidate Excel 2007

Hi

Sorry I think this part of the page is not so bad <g
Download also the Example workbook so you can see it working


Where do I copy the macros and functions from this page?

1. Alt-F11
2. InsertModule from the Menu bar
3. Paste the Code there
4. Alt-Q to go back to Excel
5. Alt-F8 to run the subs

Common Functions required for all routines:

Function LastRow(sh As Worksheet)
On Error Resume Next
LastRow = sh.Cells.Find(What:="*", _
After:=sh.Range("A1"), _
Lookat:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
On Error GoTo 0
End Function


Function LastCol(sh As Worksheet)
On Error Resume Next
LastCol = sh.Cells.Find(What:="*", _
After:=sh.Range("A1"), _
Lookat:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Column
On Error GoTo 0
End Function





--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
Yes, I read that but, I don't understand where in the series of commands do I
insert the additional function. The directions don't provide enough detail
for a novice.
--
Melanie


"Ron de Bruin" wrote:

Hi Melanie

When you read the information above the macro it say

Important:
The macro examples use the LastRow or LastCol function that you can find in the last section of this page.

So copy the function also in the same module as the macro.
Let me know if you need more help



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I've tried the VB scripts provided and they error out at:

'Find the last row with data on the DestSh
Last = LastRow(DestSh)

--
Melanie


"Ron de Bruin" wrote:

Hi Melanie

Try this example with aexample workbook
http://www.rondebruin.nl/copy2.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Melanie" wrote in message ...
I have 13 worksheets that I need to consolidate onto one sheet. I've tried
using codes from VB and they error out or give unwanted results.

I want to use consolidate from the data tools group. I've followed the steps
provided by help and even though the function appears to execute; no results
show. Can someone help me out?

--
Melanie


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Data Tools - Consolidate Excel 2007

Just copy the LastRow and LastCol functions from Ron's site and paste them
into the same module where you placed the other code.

They are separate functions and are not inserted into any existing code.


Gord Dibben MS Excel MVP


On Tue, 28 Apr 2009 14:40:01 -0700, Melanie
wrote:

Yes, I read that but, I don't understand where in the series of commands do I
insert the additional function. The directions don't provide enough detail
for a novice.


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
Consolidate Multiple Workbooks - Excel 2007 Nadine Excel Worksheet Functions 1 April 28th 09 09:10 PM
Tools Tab on Excel 2007 AJ21 Excel Discussion (Misc queries) 5 March 30th 09 08:45 PM
Pivottables - Can i consolidate 2 Data sources in Excel 2007? Kevin Clark[_2_] Excel Discussion (Misc queries) 4 January 8th 08 12:32 AM
Consolidate in Excel 2007 and 2003 Diamontina Cocktail New Users to Excel 8 May 14th 07 09:41 PM
How do get to data form tools in excel 2007? Corty_d Excel Discussion (Misc queries) 3 March 5th 07 09:40 PM


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