LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Generate list in separate workbook

Hi, I have this code in a workbook and the events in one sheet go to another
sheet creating a list. (Thanks to Jim Thomlinson)

Is there a way to get it to create the list in another excel file that I
have saved? And also, how could I get it to create a column in the list that
says which workbook the information has come from. eg. the code below is in
file "7A1.xls" and the list is generated in SIO.xls how can I list the 7A1
file name in a column?

Many thanks.
Paul.


Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Dim rng As Range

Cancel = True
If Target.Row = 1 Then
Target.Value = Date
Else
Select Case Target.Value
Case Empty
Target.Value = "x"
Case "x"
Target.Value = "xx"
Case "xx"
Target.Value = 15
Set rng = Sheets("SIOs").Cells(Rows.Count, _
"A").End(xlUp).Offset(1, 0)
rng.Value = Cells(Target.Row, "A").Value
rng.Offset(0, 1).Value = Cells(1, Target.Column).Value
End Select
End If
End Sub


 
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
Generate reports on separate tabs from data in file [email protected] Excel Discussion (Misc queries) 3 May 6th 09 01:30 AM
Generate reports on separate tabs from data in file [email protected] Excel Worksheet Functions 3 May 6th 09 01:30 AM
How do I generate a list of the tabs/worksheets from a workbook? tjennings Excel Worksheet Functions 7 May 23rd 07 09:51 PM
get Pivot table to generate separate worksheets for each row? Matt D Francis Excel Worksheet Functions 2 April 13th 07 11:10 AM
Data Validation from list on separate Workbook Few more questions[_2_] Excel Discussion (Misc queries) 2 March 2nd 07 05:03 PM


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