Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Importing each cell in a range to a different worksheet

Hello,

I've been trying to work out the best way to import the latest prices I have
from my stores department (all in a column from F7:F258). But what I need to
do is import F7 into K12 of the worksheet what has the same name as the
value in cell A7. Now the lastes price list is a seperate workbook to the
one that I'm trying to import the data into. I've tried several loop codes
but nothing seems to work. If anyone is able to help can you possiblly
explain the code so that I can understand how you did it so that next time
hopefully I can start to get a better grasp of how to get started. I have
included the pitiful attempt that I have made to do this.

Sub SetUOIPrice()
Dim ws as worksheets
Set i = 7
Do
For eash ws in worksheets
UnitPrice = "='[PATIENTCATALOGUE.xls]Pt Care Supplies'!Cells(i,12)"
Range("L7").Select
ActiveCell.FormulaR1C1 = UnitPrice
i=i+1
Next ws
Do until i=237
End Sub

Thanks Glenn



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
Importing range of cell values from several workbooks to one ®eljka Petrović New Users to Excel 2 October 4th 07 01:12 PM
Worksheet Cell Range Name within VB Subroutine Jay Somerset Excel Discussion (Misc queries) 5 February 6th 06 02:27 PM
importing data from Excel worksheet to another worksheet jbrick Excel Worksheet Functions 0 August 11th 05 05:51 PM
Worksheet().Range(Cell(), Cell()) syntax? Ouka[_6_] Excel Programming 10 July 27th 05 12:50 AM
selecting cell range in other worksheet without switching to worksheet suzetter[_4_] Excel Programming 4 June 22nd 05 08:55 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"