Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep a "history" in Visio

Status
Not open for further replies.

Alcedes

Technical User
Joined
Mar 25, 2008
Messages
46
Location
US
So far, TheInsider has been the most valuable tool I could have ever hoped to have. Here is one more for him or anyone else:

I want to design a "Back" feature for my visio. By "Back" feature I mean something similar to the "Back" button in Internet Explorer. Perhaps even bind it to the "Backspace" key.

Is this feasible? I think I have a good plan for doing it but the only thing I am lacking is the ability to track the event of the user going to another page. If I could find a way monitor that, then I could easily design a way to track it.
 
Hmmm this isn't something I've tried before, but Microsoft claims you can trap the key press event even though there isn't a KeyPress event in the list of events. See for sample code.

Ironically, the Document_PageChanged() event doesn't seem to fire when I change the page, so I think you've got me stumped :-P.
 
That event does not fire when you switch pages. It fires when you actually modify the page you are currently viewing. :)
 
Doesnt matter. I am stuck on something stupidly simple right now. Just cant remember how to do it. LOL

Trying to write a code that will take an ip address, andb reak it up returning only the value of the 3rd octet.

Meaning if I have an ip address of 192.168.2.1
I want to store the 2 in a variable called X.

I know it is something with the Right$ command.
Just got to figure out how to tell it to get the information stored between the second perior and the fourth period.

And it is an easy damn code too. :(
 
Well, the lazy way of doing it is:
Code:
    Dim s As String
    s = "192.168.0.1"
    MsgBox "The value in octet three is " & Split(s, ".")(2) 'octect position - 1
Alternatively, you could use the Left$, Mid$, Right$ methods with Instr()... or you could use Regular Expressions... lots of ways of doing that.
 
my worked.

Your way was easier. lol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top