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 / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

array probs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobcPettit@yahoo.co.uk - 19 Jan 2006 20:34 GMT
hi, hope I can ask this clearly.
a                  b    c    d    e       f         g         h                   i     j
k    l
09/10/2004    14    11    18    Walsall    2           1      Colchester     9    4    3

Im using data laid out as above running from january to December. I
take the data from the worksheet put into a dynamic array, comapre f to
h if the same I then put that data for the row into another array and
paste back to worksheet. That side of I can do fine. But a big
difficulty Icant seem to resolve is that with dates 10/10/2001 -
31/10/2001 & 13/11/2004 - 30/11/2004 & 10/12/2004 - 29/12/2004, when My
program runs on auto from jan to dec these dates dont capture f & g
data. They capture everything else, a,b,c,d,e,g(a space),i,j,k,l. All
the other dates are perfect. Now the strange thing is if I step through
the program (f8), its fine. Whence I cant find the problem. I am using
variables, so I wondering if I should be emptying these after each pass
through. Basically the program takes the first date, if it meets a
criteria, goes of and to another worksheet enters some details, comes
back to original, enters data into array then paste to sheet, emptys
aray and moves to next date. any advice appreciated.
Regards Robert
David Frette - 19 Jan 2006 22:35 GMT
I don't quite understand what you are doing and am in a hurry to end my day.
Since you are UK there is time difference .... so I'll answer what I can now.
Maybe someone else will pick up the pieces.

Step 1:
" I am using variables, so I wondering if I should be emptying these after
each pass through. "
Yes. That is a basic principle in using a loop unless you want to compare
one iteration to the next! Most of the time, it's good practice to clear your
variables appropriately at the end of a loop. Do that.  If that doesn't solve
it, then do step 2.

Step 2:
Second, use a Debug command (or test g against an empty string, against a
space, and a Null) to break your code.

Step 3:
Get back to us.

> hi, hope I can ask this clearly.
> a                  b    c    d    e       f         g         h                   i     j
[quoted text clipped - 17 lines]
> aray and moves to next date. any advice appreciated.
> Regards Robert
 
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.