LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Creating a list / concatenate function

I want to create a list using the concatenate function in Excel 2007. (Or
another method if something else works better.) The list I'm creating is
code that will be copied and pasted into CADD software that will
automatically number plan sheets.

What I can't figure out is how to properly combine the lines of code
together with the list of sheets. What I need to do is combine four lines of
code with each sheet in a list of plan sheets. The lines of code are as
follows:

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString",
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString",
MbeSendCommand "CHANGE TEXT ALL "

What I need to do is combine these lines of code (with one blank line after
the three lines) with a list of plan sheets.

Combine these lines:

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString",
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString",
MbeSendCommand "CHANGE TEXT ALL "

With this list:

Tile Sheet
Table of Contents
Shematic Plan
Notes

As an example:

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString", "Title Sheet"
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString", "1"
MbeSendCommand "CHANGE TEXT ALL "

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString", "Table of Contents"
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString", "2"
MbeSendCommand "CHANGE TEXT ALL "

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString", "Schematic"
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString", "3"
MbeSendCommand "CHANGE TEXT ALL "

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString", "Notes"
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString", "4"
MbeSendCommand "CHANGE TEXT ALL "

However, when I use the concatenate function and copy it, it skips every
four lines. What I get is:

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString", "Title Sheet"
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString", "1"
MbeSendCommand "CHANGE TEXT ALL "

MbeSetAppVariable "CHNGTXT", "chTextInfo.oldString", "Notes"
MbeSetAppVariable "CHNGTXT", "chTextInfo.newString", "4"
MbeSendCommand "CHANGE TEXT ALL "

How can I combine the lines of code with my list of plan sheets so that it
doesn't skip every four lines?
 
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
Creating a list using w/ a function Otto Excel Worksheet Functions 2 April 29th 07 04:05 AM
Creating a concatenate text list by referencing an array nothingbutjeep Excel Discussion (Misc queries) 0 May 30th 06 09:46 PM
Concatenate Results from a Validated Drop Down List Debra Dalgleish Excel Discussion (Misc queries) 1 April 27th 06 08:58 PM
Creating Drop Down boxes with the List function... JeanneW Excel Discussion (Misc queries) 3 June 1st 05 02:59 PM
Using CONCATENATE function to create email addresses from a list Almamba Excel Worksheet Functions 2 January 23rd 05 09:10 PM


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