#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Looping


Hi
I have a a P & L in excel that changes depending on what dept is
entered into a particluar cell.
In the same book i have a list of the depts in a column. What i want to
be able to do is have a macro that goes through the column placing each
dept into the cell with in the P & L sheet so that a new P&L is
created for each dept until all depts have been done i.e raches a blank
cell.

Thanks


--
Embalmer
------------------------------------------------------------------------
Embalmer's Profile: http://www.excelforum.com/member.php...o&userid=17907
View this thread: http://www.excelforum.com/showthread...hreadid=499165

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Looping

Dim c as range
For each c in {range containing dept list}

target cell (you called it 'a particular cell) = c

Next c



"Embalmer" wrote in
message ...

Hi
I have a a P & L in excel that changes depending on what dept is
entered into a particluar cell.
In the same book i have a list of the depts in a column. What i want to
be able to do is have a macro that goes through the column placing each
dept into the cell with in the P & L sheet so that a new P&L is
created for each dept until all depts have been done i.e raches a blank
cell.

Thanks


--
Embalmer
------------------------------------------------------------------------
Embalmer's Profile:
http://www.excelforum.com/member.php...o&userid=17907
View this thread: http://www.excelforum.com/showthread...hreadid=499165



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
Not Looping Roger Excel Discussion (Misc queries) 0 February 26th 08 05:18 PM
Looping David T Excel Discussion (Misc queries) 2 August 30th 06 10:51 PM
Looping Gusset Gadder Excel Programming 2 December 11th 04 09:16 PM
Looping Stuart[_9_] Excel Programming 0 October 29th 03 11:31 PM
Need Looping Help [email protected] Excel Programming 2 October 29th 03 08:11 PM


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