LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Converting Excel Formula to Macro


I hope this makes sense.

I am trying to reduce some manual intervention when creating an XM
file from Excel. Unfortunately I cannot just save the file in XM
format because many of the values are child values.

Current I copy a formula to a range of cells in a particular column
say column L, starting at row 5 and going to row n. The formula look
at values in other columns in the matching row concatenates the
together along with some hardcoded XML tags to create an XML string.

Example Data

Cell R5 = "Base Price"
Cell S5 = "" (Empty String)
Cell T5 = "22.50"
Cell U5 = "Online Price"
Cell V5 = "" (Empty String)
Cell W5 = "23.50"

I copy a formula to Cell L5 and the resulting value for L5 is:

<itemPriceLine
<itemPriceTypeRef
<nameBase Price</name
</itemPriceTypeRef
<itemPrice22.50</itemPrice
</itemPriceLine
<itemPriceLine
<itemPriceTypeRef
<nameOnline Price</name
</itemPriceTypeRef
<itemPrice23.50</itemPrice
</itemPriceLine

Any help wold be appreciate

--
mjm91
-----------------------------------------------------------------------
mjm917's Profile: http://www.excelforum.com/member.php...fo&userid=1471
View this thread: http://www.excelforum.com/showthread.php?threadid=26335

 
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
macro for converting excel to adobe pdf matt Excel Discussion (Misc queries) 1 February 22nd 07 06:53 PM
Converting a Access routine into an Excel macro? turtle[_2_] Excel Discussion (Misc queries) 2 February 21st 07 06:38 PM
Converting two column compare macro to vba in Excel John[_86_] Excel Programming 1 June 12th 04 04:01 AM
Assist in converting Lotus Macro to Excel? Mike123 Excel Programming 4 February 13th 04 09:44 AM
macro for converting text file to excel tomhaddock[_3_] Excel Programming 0 September 5th 03 11:40 AM


All times are GMT +1. The time now is 01:52 PM.

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"