Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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 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

--
buffysla
-----------------------------------------------------------------------
buffyslay's Profile: http://www.excelforum.com/member.php...nfo&userid=357
View this thread: http://www.excelforum.com/showthread.php?threadid=50725

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default looping through current region


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


--
buffyslay
------------------------------------------------------------------------
buffyslay's Profile: http://www.excelforum.com/member.php...fo&userid=3573
View this thread: http://www.excelforum.com/showthread...hreadid=507257

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
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
Current region emulation daverau Excel Worksheet Functions 5 October 16th 09 04:31 AM
Assigning name to current region KDJ Excel Programming 2 August 21st 05 04:18 PM
Copy Current Region Rohit Thomas[_2_] Excel Programming 1 December 4th 03 01:55 AM
Naming Current Region Gavin[_4_] Excel Programming 3 October 14th 03 03:38 PM


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