Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Combining Data from Multiple Worksheets into 1

Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Combining Data from Multiple Worksheets into 1

Start here
http://www.rondebruin.nl/copy3.htm

Try the add-in



--

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


"Mike Lewis" wrote in message ...
Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Combining Data from Multiple Worksheets into 1

Hello,

I tried cutting and pasting, and I get an error that takes me back to the
top with yellow. Here is what I cut and paste. Sub RDB_Merge_Data() turned
yellow and Get_File_Names highlighted blue.

Thoughts?

Sub RDB_Merge_Data()
Dim myFiles As Variant
Dim myCountOfFiles As Long

myCountOfFiles = Get_File_Names( _
MyPath:="C:\Documents and
Settings\lewism11\Desktop\Survey Subfile", _
Subfolders:=False, _
ExtStr:="*.xls", _
myReturnedFiles:=myFiles)

If myCountOfFiles = 0 Then
MsgBox "No files that match the ExtStr in this folder"
Exit Sub
End If

Get_Data _
FileNameInA:=True, _
PasteAsValues:=True, _
SourceShName:="", _
SourceShIndex:=1, _
SourceRng:="A1:G1", _
StartCell:="", _
myReturnedFiles:=myFiles

End Sub

"Ron de Bruin" wrote:

Start here
http://www.rondebruin.nl/copy3.htm

Try the add-in



--

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


"Mike Lewis" wrote in message ...
Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Combining Data from Multiple Worksheets into 1

Download the example workbook



--

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


"Mike Lewis" wrote in message ...
Hello,

I tried cutting and pasting, and I get an error that takes me back to the
top with yellow. Here is what I cut and paste. Sub RDB_Merge_Data() turned
yellow and Get_File_Names highlighted blue.

Thoughts?

Sub RDB_Merge_Data()
Dim myFiles As Variant
Dim myCountOfFiles As Long

myCountOfFiles = Get_File_Names( _
MyPath:="C:\Documents and
Settings\lewism11\Desktop\Survey Subfile", _
Subfolders:=False, _
ExtStr:="*.xls", _
myReturnedFiles:=myFiles)

If myCountOfFiles = 0 Then
MsgBox "No files that match the ExtStr in this folder"
Exit Sub
End If

Get_Data _
FileNameInA:=True, _
PasteAsValues:=True, _
SourceShName:="", _
SourceShIndex:=1, _
SourceRng:="A1:G1", _
StartCell:="", _
myReturnedFiles:=myFiles

End Sub

"Ron de Bruin" wrote:

Start here
http://www.rondebruin.nl/copy3.htm

Try the add-in



--

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


"Mike Lewis" wrote in message ...
Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Combining Data from Multiple Worksheets into 1

Got it.....Now, one last question. The section below....

'Add a new workbook with one sheet
Set BaseWks = Workbooks.Add(xlWBATWorksheet).Worksheets(1)
Cnum = 1

Can you add the sheet to an existing workbook instead of a new workbook?
"Ron de Bruin" wrote:

Download the example workbook



--

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


"Mike Lewis" wrote in message ...
Hello,

I tried cutting and pasting, and I get an error that takes me back to the
top with yellow. Here is what I cut and paste. Sub RDB_Merge_Data() turned
yellow and Get_File_Names highlighted blue.

Thoughts?

Sub RDB_Merge_Data()
Dim myFiles As Variant
Dim myCountOfFiles As Long

myCountOfFiles = Get_File_Names( _
MyPath:="C:\Documents and
Settings\lewism11\Desktop\Survey Subfile", _
Subfolders:=False, _
ExtStr:="*.xls", _
myReturnedFiles:=myFiles)

If myCountOfFiles = 0 Then
MsgBox "No files that match the ExtStr in this folder"
Exit Sub
End If

Get_Data _
FileNameInA:=True, _
PasteAsValues:=True, _
SourceShName:="", _
SourceShIndex:=1, _
SourceRng:="A1:G1", _
StartCell:="", _
myReturnedFiles:=myFiles

End Sub

"Ron de Bruin" wrote:

Start here
http://www.rondebruin.nl/copy3.htm

Try the add-in



--

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


"Mike Lewis" wrote in message ...
Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Combining Data from Multiple Worksheets into 1

Can you add the sheet to an existing workbook instead of a new workbook?

Yes

Set BaseWks = Thisworkbook.Worksheets("Yourworksheet")


--

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


"Mike Lewis" wrote in message ...
Got it.....Now, one last question. The section below....

'Add a new workbook with one sheet
Set BaseWks = Workbooks.Add(xlWBATWorksheet).Worksheets(1)
Cnum = 1

Can you add the sheet to an existing workbook instead of a new workbook?
"Ron de Bruin" wrote:

Download the example workbook



--

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


"Mike Lewis" wrote in message ...
Hello,

I tried cutting and pasting, and I get an error that takes me back to the
top with yellow. Here is what I cut and paste. Sub RDB_Merge_Data() turned
yellow and Get_File_Names highlighted blue.

Thoughts?

Sub RDB_Merge_Data()
Dim myFiles As Variant
Dim myCountOfFiles As Long

myCountOfFiles = Get_File_Names( _
MyPath:="C:\Documents and
Settings\lewism11\Desktop\Survey Subfile", _
Subfolders:=False, _
ExtStr:="*.xls", _
myReturnedFiles:=myFiles)

If myCountOfFiles = 0 Then
MsgBox "No files that match the ExtStr in this folder"
Exit Sub
End If

Get_Data _
FileNameInA:=True, _
PasteAsValues:=True, _
SourceShName:="", _
SourceShIndex:=1, _
SourceRng:="A1:G1", _
StartCell:="", _
myReturnedFiles:=myFiles

End Sub

"Ron de Bruin" wrote:

Start here
http://www.rondebruin.nl/copy3.htm

Try the add-in



--

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


"Mike Lewis" wrote in message ...
Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Combining Data from Multiple Worksheets into 1

If I use the add-in and want to sell the template then what? Does the add in
follow the template if someone else uses it?

"Ron de Bruin" wrote:

Start here
http://www.rondebruin.nl/copy3.htm

Try the add-in



--

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


"Mike Lewis" wrote in message ...
Hello, I need some help. I have a survey that has one spreadsheet for each
customer. I also have a master excel spreadsheet that these need to roll up
to. Does anyone have suggestions of how I can roll up just the data from
these spreadsheets to the master spreadsheet. I am not sure that I want all
the spreadsheets to actually roll into the master spreadsheet or just the
data. I would love to be able to do this with a macro as this will be a
frequent survey.

Thanks in advance for your help.


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
Combining data from multiple worksheets into one Mark712 Excel Discussion (Misc queries) 4 January 27th 10 07:36 PM
combining data from multiple worksheets into one yowzers Excel Worksheet Functions 4 December 26th 09 04:45 PM
combining data multiple worksheets into one? kamartin Excel Discussion (Misc queries) 5 February 10th 09 11:50 PM
Combining data from multiple worksheets. Olmsted57 Excel Discussion (Misc queries) 7 August 1st 07 01:12 AM
Combining data from multiple worksheets and separate spreadsheets kfletchb Excel Discussion (Misc queries) 1 August 10th 06 07:53 PM


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