Results 1 to 7 of 7

Macro - copy and insert multiple rows

Threaded View

Shazzapg Macro - copy and insert... 03-20-2013, 05:26 PM
arlu1201 Re: Macro - copy and insert... 03-21-2013, 01:11 PM
Shazzapg Re: Macro - copy and insert... 03-21-2013, 01:28 PM
arlu1201 Re: Macro - copy and insert... 03-21-2013, 02:34 PM
Shazzapg Re: Macro - copy and insert... 03-21-2013, 04:37 PM
arlu1201 Re: Macro - copy and insert... 03-22-2013, 06:17 AM
Shazzapg Re: Macro - copy and insert... 03-22-2013, 10:37 AM
  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post Macro - copy and insert multiple rows

    Hi! Just joined this forum - very excited that someone may be able to help me with my issue.

    I work with hotels and I am trying to create a macro that breaks up data from one row into multiple rows. In my original spreadsheet, each row has a hotel name, code, city, country, etc. Then it has a list of blackout start and end dates. The max number of date ranges is 10.

    I want the macro to look at the number of blackout ranges for each hotel and then insert the same number of additional rows beneath the first row. There should be a separate row for each set of blackout dates.

    I've attached a sample: Tab 1 has my starting data and tab 2 has the desired output. If the hotel has no blackout dates, no new rows would be added. If there is only one blackout date, no new rows would be added either.

    Any suggestions would be greatly appreciated! Let me know if there are any questions.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1