Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Accessing same cell in multiple worksbooks

Hi,

I am currentl yworking on something like a feedback from. The form is
devised in Excel and the answers have been given in a Drop Down list. SO, the
person giving feedback needs to select only 'Yes', 'No', or 'N/A'. Now I have
1000's of tehse sheets in batches of 40 from each region.

I need to collate a summary for each region. Is there a way by which I can
acess these worksheets region wise and collect (sum up) the 'Yes', 'No' and
'N/A' for each region. These are in cell 'I10' in all the sheets.

Also, each region has 'n' number of feedback forms where 'n' is not known.
Can we stil lcollate a summary?

Any help in this issue wil lbe deeply appreciated.

Thanks in anticipation of all your help.

Regards
Gopi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Accessing same cell in multiple worksbooks

Gopi,

Copy the macro below into a blank workbook, then, when you run it, select the files that you want to
summarize when prompted.

This assumes that all the sheets have the same name, and that the activesheet of any of the
workbooks will be the sheet of interest. Of course, if that is wrong, you can easily change that
part of the code.

HTH,
Bernie
MS Excel MVP


Sub CreateLinksToMulitpleFiles()
Dim MyFormula As String
Dim myCount As Long
Dim LookIn As String
Dim FileArray As Variant
Dim myShtName As String
Dim i As Integer

myCount = Cells(Rows.Count, 1).End(xlUp)(2).Row
FileArray = Application.GetOpenFilename(MultiSelect:=True)

If IsArray(FileArray) Then
Workbooks.Open FileArray(LBound(FileArray))
LookIn = ActiveWorkbook.Path
myShtName = ActiveSheet.Name
ActiveWorkbook.Close False
For i = LBound(FileArray) To UBound(FileArray)
'Generate myFormula through string manipulation
MyFormula = "='" & LookIn & "\[" & _
Replace(FileArray(i), LookIn & "\", "") _
& "]" & myShtName & "'!I10"
'Set cell formula
Cells(myCount, 1).Formula = MyFormula
myCount = myCount + 1
Next i
End If

End Sub





"Gopi" wrote in message
...
Hi,

I am currentl yworking on something like a feedback from. The form is
devised in Excel and the answers have been given in a Drop Down list. SO, the
person giving feedback needs to select only 'Yes', 'No', or 'N/A'. Now I have
1000's of tehse sheets in batches of 40 from each region.

I need to collate a summary for each region. Is there a way by which I can
acess these worksheets region wise and collect (sum up) the 'Yes', 'No' and
'N/A' for each region. These are in cell 'I10' in all the sheets.

Also, each region has 'n' number of feedback forms where 'n' is not known.
Can we stil lcollate a summary?

Any help in this issue wil lbe deeply appreciated.

Thanks in anticipation of all your help.

Regards
Gopi



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
Multiple People Accessing Same File Vixter77 Excel Discussion (Misc queries) 0 March 24th 07 04:48 AM
Multiple accessing of an excel file [email protected] Excel Discussion (Misc queries) 5 February 26th 06 06:56 PM
Multiple accessing of an excel file [email protected] Excel Worksheet Functions 2 February 26th 06 12:10 AM
Open method of worksbooks class failed Ben Excel Programming 5 August 22nd 05 11:16 PM
Accessing multiple workbooks through a macro Raman325 Excel Programming 6 June 29th 05 05:28 PM


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