+ Reply to Thread
Results 1 to 3 of 3

VB errors in EXCEL 2007

Hybrid View

Grady VB errors in EXCEL 2007 08-10-2007, 01:13 PM
royUK Len works fine. Trim is OK... 08-10-2007, 02:11 PM
Grady More on Excel errors 08-13-2007, 07:24 PM
  1. #1
    Registered User
    Join Date
    08-10-2007
    Posts
    2

    VB errors in EXCEL 2007

    I have been successfully running an EXCEL 2003 application containing Visual Basic code for some time without errors. When attempting to run the same application(s) on EXCEL 2007, various errors occur. For example, errors such as Out of Stack Memory, Select property of Range is not allowed, and even common functions such as Trim and Len are not found. Why will a 2003 application not run correctly in 2007? Any thoughts on this?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Len works fine.

    Trim is OK too

    Const MyString = "  <-Trim->  "
    Cells(1, 1) = MyString
    Cells(1, 2) = Trim(MyString)  ' TrimString = "<-Trim->".
    I can't comment on the Out of Stack memory without viwing your code
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-10-2007
    Posts
    2

    More on Excel errors

    The Visual Basic code for an Excel 2003 application runs without errors or running out of stack space. However, running the same application (actually, more than one application) produces errors that are strange when run on Excel 2007 installed on either XP or Vista. Typical error messages are "Out of Stack Space" (Error 28) and cannot find project or library. In the latter case, the program sdebugger tops on simple variables such as I or Error$ or functions such as RTrim or Len. The libraries are referenced. Has anyone had similar experiences and, if so, how were they resolved?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1