Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JA JA is offline
external usenet poster
 
Posts: 13
Default Macro to merge cells

Please a macro to merge cells of course codes based on
duration of course. For example the 3 cells of PM 01 in
the first row shoud be merged and only one PM 01 centered
in the cell covering 31 Jul to 2 Aug.

Table 1: Course Duration
Course Duration
HR 12 1
IM 01 3
MM 01 2
PM 01 3

Table 2 Courses Shedule
31-Jul-04 1-Aug-04 2-Aug-04 3-Aug-04 4-Aug-04
PM 01 PM 01 PM 01
PM 01 PM 01 PM 01
PM 02 PM 02 PM 02
PM 02 PM 02 PM 02
HR 12 HR 12 HR 12 HR 12 HR 12
HR 12 HR 12 HR 12 HR 12 HR 12
IM 01 IM 01 IM 01
IM 01 IM 01 IM 01
MM 01 MM 01 MM 01 MM 01
MM 01 MM 01 MM 01 MM 01
MM 01 MM 01 MM 01 MM 01
MM 01 MM 01 MM 01 MM 01
MM 02 MM 02 MM 02 MM 02

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
how do I merge cells into one then delete the original cells? LLR Excel Worksheet Functions 2 March 7th 08 10:59 PM
Merge cells with formula or macro? Joe M. Excel Discussion (Misc queries) 5 July 23rd 07 10:28 PM
Excel Macro - Merge Cells unavailable - Unable to figue out why. newexceluser Excel Worksheet Functions 0 January 18th 06 03:22 PM
Merge Cells in a column Macro Mike G. Excel Programming 1 May 18th 04 05:34 PM
Merge cells using macro Tom Ogilvy Excel Programming 0 August 7th 03 07:20 PM


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