LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default get data from one sheet list in another


Scott,

First, aren't your completed sites listed in cells W3:W59 (or where
ever the end of the list will be)? Your selection change is currently
triggered by E6:E40.
I changed this to W3:W59 for testing

Second, as soon as you click on a site name in W3:W59 it tries to clear
the contents of H6:I300 which it can't do because some of those cells
are merged.
I commented this line out for testing

Third, you are comparing the Target.Value of the Site Name selected
with column D on the "Sites" list which is actually the Hosp Name.
I chaged this to compare with column C from your "Site" sheet which
contains the Site Names

Then when you add the item to the Relist Collection what exactly are
you trying to add? The code has only a single item being added to that
collection which corresponds to the Hosp Name.

In the For i to Relist.Count loop I'm not exactly sure what you are
trying to accomplish with this. The destination
Range("H5").Offset(i,0) or
Range("H5").Offset(i,1) seems to correspond to a Range you currently
have populated with the VPN Device Codes (H6) or
the VPN Device Type for that site (I6)

It looks like you may have changed the layout of your sheets and things
aren't in the same locations as when you first wrote the code?

Hope this helps to get you started


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=380191

 
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
Need help Taking alot data from one sheet (if not blank) and copying toa list on another sheet. Alex Zuniga Excel Worksheet Functions 1 November 25th 09 11:54 PM
how to compare a list of data that is same as the main data sheet Nxam New Users to Excel 1 February 2nd 06 04:17 PM
List matching data from sheet 1 in sheet 2 Thrain Excel Worksheet Functions 4 December 2nd 05 07:11 PM
adding data from one sheet to another sheet as a dropdown list bo. gatorguy Excel Discussion (Misc queries) 1 February 18th 05 10:51 PM
copy data from a list to another sheet karaeloko Excel Programming 4 November 14th 03 05:47 PM


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