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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by tgmoon

  1. tgmoon

    Save Word file as todays date

    I've been looking all over but can't find anything, but is there an easy bit of code to save a word file named as todays date? Many thanks Thom
  2. tgmoon

    Find Shape Name. PPT VBA 2000

    Hi. I'm using the following bit of code to act according to what shape name is currently selected. Sub MySub() Dim sh As Shape On Error Resume Next Set sh = ActiveWindow.Selection.ShapeRange(1) If Not sh Is Nothing Then If sh.Name = "Picture" Then Call...
  3. tgmoon

    ErrorHandler question

    I have a whole load of little subs in a modules.... eg Sub WM1() On Error Goto ErrorHandler my code Exit Sub ErrorHandler: MsgBox "Error" End Sub. What I was wondering is if it is possible to have a single ErrorHandler that encompases the whole module?
  4. tgmoon

    Run Sub using Variable PPT VBA 2000

    Just tried it now. Oh dear.... i've got to go through all my code again with my new found knowledge of optional variables!!
  5. tgmoon

    Run Sub using Variable PPT VBA 2000

    Brilliant. Thanks Gerry, PHV and Combo. This will prove very helpful indeed.
  6. tgmoon

    Run Sub using Variable PPT VBA 2000

    Thanks everyone. Working a treat now, though i'm now trying to work out how to make the str2 optional!!
  7. tgmoon

    Run Sub using Variable PPT VBA 2000

    Hi. I'm getting a little confused. Should I be able to run a Sub using a variable. i.e. Sub SomeThing() Call SomethingElse("etc", "MYSUB") End Sub Function SomethingElse(str1 As String, str2 As String) some code = str1 str2 End Function Hope that sort of makes sense but the str2 is...
  8. tgmoon

    Word XP prompting to accept change of normal template

    Has the normal.dot been user modified in any way? i.e. macro's and custom shortcut keys?
  9. tgmoon

    Naming Shape PPT VBA 2000

    I'm having no problem nameing a shape with the following With ActiveWindow.Selection.ShapeRange .Name = myName End With But I was wondering if it is possible to delete the name (not the shape) and have powerpoint rename it using it's own convention?
  10. tgmoon

    Reset UserForm, VBA PPT 2000

    I was just wondering if there's a quick bit of code to reset a userform when it is exited?
  11. tgmoon

    Dim Question

    If, for example i'm writing the following code:- Dim EG1 as Boolean Dim EG2 as Boolean Dim EG3 as Boolean EG1 = ToggleButton1.Value EG2 = ToggleButton2.Value EG3 = ToggleButton3.Value But i've got EG's going up to EG30..... do I need to put each and everyone of them, or is there a quick way...
  12. tgmoon

    MSGraph Powerpoint VBA

    Hi. I'm trying to create a graph in powerpoint with VBA which will then apply the format required. A basic version below:- Sub GraphTest() Dim oShape As PowerPoint.Shape Dim oGraphChart As Graph.Application Set oShape = ActiveWindow.Selection.SlideRange.Shapes.AddOLEObject _...
  13. tgmoon

    Embed unused image in VBA Userform

    Silly me. worked it out. Create the button, and hide it!!
  14. tgmoon

    Embed unused image in VBA Userform

    I was wondering if it was possible to embed an image in the userform that isn't initally seen by the user, untill a certain button is pressed, and a new button is created with thee image in it?

Part and Inventory Search

Back
Top