+ Reply to Thread
Results 1 to 3 of 3

looping through current region

  1. #1
    Registered User
    Join Date
    12-08-2003
    Posts
    4

    Unhappy looping through current region

    sorry to post again - but problem is a bit different now

    i need a different wrap tag for each column.....but cannot see how to move it along?

    For Each c In ActiveCell.CurrentRegion.Cells

    'MsgBox c
    sOut = sOut & "<note>"
    sOut = sOut & groupTitle & c & groupTitleEND
    sOut = sOut & mapping & c & mappingEND
    sOut = sOut & Description & c & DescriptionEND
    sOut = sOut & budgetCode & c & budgetCodeEND
    sOut = sOut & budgetCodePT & c & budgetCodePTEND
    sOut = sOut & budgetCodeLU & c & budgetCodeLUEND
    sOut = sOut & "</note>"

    Next

  2. #2
    Registered User
    Join Date
    12-08-2003
    Posts
    4
    sorry - posted first one on google - didnt think about this one (sorry for clogging up servers etc)

  3. #3
    Dave Peterson
    Guest

    Re: looping through current region

    select case c.column
    case is = 1: sOut = sOut & "<note>"
    case is = 2: sOut = sOut & "<notnote>"
    end select
    ....

    select case c.column
    case is = 1: sOut = sOut & "</note>"
    case is = 2: sOut = sOut & "</notnote>"
    end select

    buffyslay wrote:
    >
    > sorry to post again - but problem is a bit different now
    >
    > i need a different wrap tag for each column.....but cannot see how to
    > move it along?
    >
    > For Each c In ActiveCell.CurrentRegion.Cells
    >
    > 'MsgBox c
    > sOut = sOut & "<note>"
    > sOut = sOut & groupTitle & c & groupTitleEND
    > sOut = sOut & mapping & c & mappingEND
    > sOut = sOut & Description & c & DescriptionEND
    > sOut = sOut & budgetCode & c & budgetCodeEND
    > sOut = sOut & budgetCodePT & c & budgetCodePTEND
    > sOut = sOut & budgetCodeLU & c & budgetCodeLUEND
    > sOut = sOut & "</note>"
    >
    > Next
    >
    > --
    > buffyslay
    > ------------------------------------------------------------------------
    > buffyslay's Profile: http://www.excelforum.com/member.php...fo&userid=3573
    > View this thread: http://www.excelforum.com/showthread...hreadid=507257


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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