LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Copying Certain Worksheets depending on certain criterion

I have an excel file that contains multiple templates that I need to copy
depending on certain criterion. I have set up two columns for this purpose.
The first column contains the names of the worksheet to be made and the
second column will be which template to copy. I have been trying to figure
out a way but stuck and would appreciate it if you guys can help. The pseudo
code of what I'm trying to do is as follow:

Loop
if cell A is not null and cell B is null copy template 1,
else if cell A is not null and cell B is "Temp 1" copy template 2
else if cell A is not null and cell B is "Temp 2" copy template 3
else if cell A is not null and cell B is "Temp 3" copy template 4
else if cell A is not null and cell B is "Temp 4" copy template 5
end loop

Thank you.

--
Message posted via http://www.officekb.com

 
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
Summing values, x rows deep, depending on a criterion klm[_2_] Excel Worksheet Functions 2 August 18th 08 02:02 PM
Copying rows depending on criteria set? forevertrying Excel Discussion (Misc queries) 2 April 14th 08 03:00 PM
Copying data depending on cell value ivory_kitten Excel Worksheet Functions 0 August 31st 06 04:54 AM
Copying cells based on a criterion Chris_t_2k5 Excel Discussion (Misc queries) 4 February 12th 06 02:18 PM
Copying to Workbook depending on Criteria? Kryptonix New Users to Excel 0 December 12th 05 02:37 PM


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