Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
SD SD is offline
external usenet poster
 
Posts: 24
Default Copying a cell one at a time

Hi there,

This is a basic question i think.
I am trying to copy a cell one at a time from onw worksheet to another and
then run another macro called "Prices" once it is on the correct cell.

I have a list of products in worksheet("data") from range("a1:a10") although
this range will get larger with more products.

I need a loop that will start at RANGE("a1") in data worksheet and copy this
value to cell a1 in worksheet("IV"). Then it will call another macro called
Prices to run. Once this has been completed it will go back to
worksheets("data") and copy the next cell "a2" into the worksheet("IV") and
run the macro and so forth on to the next cell until it reaches the end of
the list.

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Copying a cell one at a time

Hi SD

something along the lines of

Sub dothings()
Dim i As Long
Dim lastRow As Long
lastRow = Sheets("Data").Range("A" & Rows.Count).End(xlUp).Offset(1,
0).Row
For i = 1 To lastRow
Sheets("Data").Range("A" & i & "").Copy Sheets("IV").Range("A" & i &
"")
Call Prices
Next
End Sub

Cheers
JulieD


"SD" wrote in message
...
Hi there,

This is a basic question i think.
I am trying to copy a cell one at a time from onw worksheet to another and
then run another macro called "Prices" once it is on the correct cell.

I have a list of products in worksheet("data") from range("a1:a10")
although
this range will get larger with more products.

I need a loop that will start at RANGE("a1") in data worksheet and copy
this
value to cell a1 in worksheet("IV"). Then it will call another macro
called
Prices to run. Once this has been completed it will go back to
worksheets("data") and copy the next cell "a2" into the worksheet("IV")
and
run the macro and so forth on to the next cell until it reaches the end of
the list.

Thanks for your help



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
Copying Worksheets with Validations - Response Time Kevin L. Excel Discussion (Misc queries) 0 December 18th 06 04:36 PM
Copying more that one Worksheet at a time. Patch Excel Discussion (Misc queries) 2 September 29th 06 05:23 PM
Copying Multiple Links at One Time heelinva Excel Discussion (Misc queries) 2 May 31st 05 11:33 AM
Looping down list and each time copying to another worksheet mattri Excel Programming 2 February 16th 04 06:26 PM
Looping down list and each time copying to another worksheet Matthew Richards Excel Programming 0 February 16th 04 04:58 PM


All times are GMT +1. The time now is 06:20 AM.

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"