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: 7
Default Pls explain this VBA oddity

I am looking at some VBA code in an effort to help someone. One sub
has the following statements juxtaposed:

foobar = 1234
foobar = 1234

First, what sense could there be in assigning the value twice? Does
VBA have a concept of event variables, such that each assignment
triggers an event? (Just a wild guess.)

Second, "foobar" is never used on the right-hand side of any statement
within the sub. I have done a "find" on the entire project, and I
cannot find any declaration of a global scope.

Is there some other way that I can determine where and how "foobar" is
declared?

PS: This VBA code seems to be developed by a professional. So I
doubt that the code is as purposeless as it appears.

TIA for any insights.
 
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
COUNTIF oddity Phil C Excel Worksheet Functions 1 May 30th 07 09:19 AM
An oddity if not a bug Harlan Grove Excel Worksheet Functions 21 July 17th 06 05:36 PM
Oddity with HSI Mike[_51_] Excel Programming 2 July 14th 06 06:33 PM
Chart oddity Ron P Charts and Charting in Excel 2 February 16th 06 03:05 PM
Another Excel oddity Steve Excel Discussion (Misc queries) 5 January 5th 05 08:50 PM


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