Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Looping with Variables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
L.A. Lawyer - 09 Jan 2007 22:13 GMT
I have a series of items (variables) which need the same work done on them.
These are not in any pre-existing group, but merely a bunch of variables I
am creating, e.g., "address", "name", "assignment", etc.

I was thinking of using "For Each" but that seems to be limited to
pre-existing sets of items.  I presume that I can set up some sort of array
to deal with this but I don't have a clue how to do this.
Jezebel - 09 Jan 2007 22:24 GMT
You can't do work 'on' a variable ... what are you trying to do?

You can use For...each if you put your items into a collection.

>I have a series of items (variables) which need the same work done on them.
> These are not in any pre-existing group, but merely a bunch of variables I
[quoted text clipped - 4 lines]
> array
> to deal with this but I don't have a clue how to do this.
Malcolm Smith - 10 Jan 2007 05:39 GMT
> *From:* "L.A. Lawyer" <kapplaw@linkline.com>
> *Date:* Tue, 9 Jan 2007 14:13:50 -0800
[quoted text clipped - 9 lines]
> array
> to deal with this but I don't have a clue how to do this.

Why not call a function or subroutine with the variable as an argument?

- Malc
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.