looping through current region

B

buffyslay

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

i need a different wrap tag for each column.....but cannot see how t
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>"

Nex
 
B

buffyslay

sorry - posted first one on google - didnt think about this one (sorry
for clogging up servers etc)
 
D

Dave Peterson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top