LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default repeatedly extract a field to create a new list in another file?

You need to use a worksheet event - typically, the change event - and VBA
code to place the value of the cell into the list.

For example, since you don't give file names, cell ranges, or sheet names,
you could use something like this in your Entry Sheet 's codemodule to copy
cell A3's value to another workbook - "Data File.xls" - on sheet "Data
Sheet" and at the bottom of column A: Copy this code, right-click the tab of
"Entry Sheet" and select "View Code" and paste the code into the window that
appears. For the code to work as written, the file

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$A$3" Then Exit Sub
Application.EnableEvents = False
On Error Resume Next
Workbooks("Data File.xls").Worksheets("Data Sheet"). _
Cells(Rows.Count, 1).End(xlUp)(2).Value = Target.Value
Application.EnableEvents = True
End Sub

Change "Data Sheet" to the name of the sheet that you have, and Data File to
the workbook name.

HTH,
Bernie
MS Excel MVP


"nut behind the computer" <nut behind the
wrote in message
...
I'm trying to set up an excel spreadsheet that I put in addresses in one
cell
essentially... and it populates more than one new datasource file
(ultimately
this file is used to draw information for a macro to process later) and
also
it puts these changing addresses into a running list in another excel
file-
basically creating a file that lists all the properties I've worked on in
the
last month. It's redundant to copy/paste these addresses and hopefully I
can do something that will populate this running list.

the static link to a specific cell -I can do already. the pull from a
cell
and write it in a new cell below the last entry-that escapes me.


 
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
create a file list from a folder? Hal239 Excel Discussion (Misc queries) 2 February 5th 09 03:32 PM
how do I create and extract a random order from list in Excel? Michael Excel Discussion (Misc queries) 5 August 30th 07 08:02 AM
create links to extract data from one excel file to another excel Sundew Chocobo Excel Worksheet Functions 7 May 21st 07 07:07 PM
Print a worksheet repeatedly with each list cell NN Excel Discussion (Misc queries) 1 October 11th 06 11:08 PM
create formula. 1 field constant and another field varies by inpu. telnettech Setting up and Configuration of Excel 2 February 2nd 06 11:09 PM


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