+ Reply to Thread
Results 1 to 4 of 4

Thread: Urgent Help with Code: Matter of life and death.... Of a forum that is...

  1. #1
    Valued Forum Contributor JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    Japan
    MS-Off Ver
    Excel 2010
    Posts
    782

    Urgent Help with Code: Matter of life and death.... Of a forum that is...

    I just can't seem to get the syntax correct, could a guru help me out?

    I keep getting a "Database error, Do you want to leave this Page?"


    Sub EX()
    
       Dim ExcelForum As Object
         Set ExcelForum = Internet.Popularity
    
    Nxt:
    
            With ExcelForum
                Do
                   .Replace What:="Vaibhav 'sTeam", Replacement:="Simon Lloyd ", LookAt:=xlPart, _
                      SearchOrder:=xlByRows, MatchCase:=False
                Loop Until Forum Problems are fixed
            
            End With
              If All Problems Are fixed Then
                 If post is Premature Then
                     Goto Nxt
                     MsgBox "All Probelms Are completely fixed"
                    ExcelForum.Post.Bugs.CompletelySolved
                 End If
              End If
    End Sub
    Last edited by JapanDave; 01-27-2012 at 07:39 PM.
    If you are happy with the answer, please click the Star icon in the below left hand corner.

    Good sites to start learning.

    snb's VBA Help Files
    Jerry Beaucaires Excel Assistant
    J & R Excel Consultancy Services

    How to post code correctly: Correct Code Posting

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,963

    Re: Urgent Help with Code: Matter of life and death.... Of a forum that is...

    I'm no expert, but I think you're ending your With statement too early, thus the line:

    If All Problems Are fixed Then
    Is evaluating problems in the context of the entire world, so will be picking up problems such as world hunger, the nuclear threat from North Korea, armed conflict across the globe and my wife's unreasonable refusal to dress up as a naughty schoolgirl.

    Also if you check the release notes that came with Earth v1.0 (Beta) you'll see there's a long outstanding bug fix, and the actual message you're seeing *should* read "Do you want to leave this planet"

    Hope this helps.

  3. #3
    Valued Forum Contributor JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    Japan
    MS-Off Ver
    Excel 2010
    Posts
    782

    Re: Urgent Help with Code: Matter of life and death.... Of a forum that is...

    So, should I declare that as a "global" Variable then? LOL
    Last edited by JapanDave; 01-27-2012 at 07:40 PM.
    If you are happy with the answer, please click the Star icon in the below left hand corner.

    Good sites to start learning.

    snb's VBA Help Files
    Jerry Beaucaires Excel Assistant
    J & R Excel Consultancy Services

    How to post code correctly: Correct Code Posting

  4. #4
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,318

    Re: Urgent Help with Code: Matter of life and death.... Of a forum that is...

    Does she dress up for others and just not you?
    One test is worth a thousand opinions.
    Click the * below to say thanks.

+ 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.2.0