Search:

Type: Posts; User: almagg

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    28,200

    PPT "Save As" dialog box from VBA

    so i have this code but it only 'shows' the dialog box.
    it does not save or rather it saves as the default name, like "Presentation2"

    Dim dlgSaveAs As FileDialog
    Set dlgSaveAs =...
  2. Replies
    2
    Views
    374

    Re: Excel 2003 VBA

    that would be:

    mybook = ActiveWorkbook.Name
  3. Replies
    0
    Views
    364

    Secondaryaxis labels

    i want to get the labels to appear at the top of the graph from a secondary axis.

    Date - this is the primary x-axis labels
    Actual - this is the Actual Value
    Plot Value - if the Actual Value is...
  4. Replies
    2
    Views
    533

    Re: OFFSET and MATCH not working

    thanks.
    you're right, i did not have a reference.

    here is what i wanted:

    I3 = OFFSET($B$1,MATCH($C$7,$B:$B,0)+(11-MONTH($C$7)),3)

    the current month is in C7.
    past and future months are in...
  5. Replies
    2
    Views
    533

    [RESOLVED] OFFSET and MATCH not working

    can't figure out why this is not working:

    I3 = OFFSET(MATCH($C$7,$B:$B,0) + 12 - MONTH($C$7),0,1))

    Col B has dates:
    02/07
    03/07
    .
    .
    .
  6. Replies
    3
    Views
    518

    Re: Offset on a vlookup

    because the table shows 18 months.
    back 11 months, current month and forward 6 months.

    notice the formula has '-11', the next cell formula will have '-10' etc...
    till the last has '+10'

    this...
  7. Replies
    3
    Views
    518

    Offset on a vlookup

    The 1st column in the table is date quarters:

    1Q08
    2Q08
    3Q08
    4Q08
    1Q09
    .
    .
  8. Replies
    3
    Views
    583

    Re: Using a variable to open forms

    thanks.
    that is a nice way around that.

    Form = Cell.Value
    Select Case Form
    Case 1 MthlyDataForm_v1
    MthlyDataForm_v1.Show
    .
    .
    .
  9. Replies
    3
    Views
    583

    Using a variable to open forms

    I will have several different UserForms that are similiar.
    On each sheet I am going to place which UserForm is used.
    (Or possibly once the sheet designs get finalized I can use existing text as a...
  10. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    ok i will look around.
    i definitely have enough work on this project this is not a major issue.

    right now i have a label informing the user they can exit w/o saving current edits by clicking the...
  11. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    close.

    it allowed the Exit button to work as did Before Update and Change.

    BUT the user can then leave the box without putting in the correct info.

    i thought i could get around that by...
  12. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    i keep getting duplicates
  13. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    oh man.

    ok i went into the Module section and declared the ExitFlag in one of the modules.

    and initialized the ExitFlag inside the Forms Initialize event.

    not working :-(

    also can't i...
  14. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    ok wait, i must be missing something.
    remember i am in the window for the MthlyForm.

    if i put

    Dim ExitFlag As Boolean
    ExitFlag = False

    outside all the code that makes the exit flag...
  15. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    there is not much here on this form.
    it looks like you have the Dim as Public.
    i had it up there, but the ExitFlag = False seems to have to go in each TextBox.

    once i get in the textbox, the...
  16. Replies
    15
    Views
    2,578

    Re: Override UserForm TextBox msgbox on Exit

    No that did not work.

    In fact once I am in the textbox and get the msgbox about the decimals, I cannot even use the Exit button.

    I can get out using the upper right 'x'.

    But the decimal...
  17. Replies
    15
    Views
    2,578

    Override UserForm TextBox msgbox on Exit

    The TextBoxes on the Forms are checked for a certain number of decimal places and a msgbox appears informing the user.

    The form has an EnterData button when the user has finished filling the...
  18. Replies
    2
    Views
    829

    Re: UserForm_Initialize

    i got it.

    i had the code in a regular module.

    then after doing some reading, i opened the form and clicked on the ViewCode and placed the code in that location.

    of course it worked because...
  19. Replies
    2
    Views
    829

    [RESOLVED] UserForm_Initialize

    Seems like this should work but it is not Initializing.
    And I have already tried removing the 1.
    Plus I have other forms so I would want to be specific about which form I am initializing?

    Sub...
  20. Replies
    11
    Views
    5,687

    Re: PowerPoint paste-link in VBA

    "An unexpected error has occurred"

    No luck.
  21. Replies
    11
    Views
    5,687

    Re: PowerPoint paste-link in VBA

    Copy the range in Excel.
    In PPT I select Edit/PasteSpecial.
    Then select PasteLink as Microsoft Excel Worksheet Object.
  22. Replies
    11
    Views
    5,687

    Re: PowerPoint paste-link in VBA

    i tried that.
    the recorder is picking up a regular Paste and the PasteSpecial(as a picture).

    but the recorder is not picking up the PasteLink.

    thanks though
  23. Replies
    11
    Views
    5,687

    Re: PowerPoint paste-link in VBA

    I just uploaded an image of what I am copying.
    If I did it right.
  24. Replies
    11
    Views
    5,687

    Re: PowerPoint paste-link in VBA

    Well it is both.
    I copy a range from a sheet, which contains cells and graphs.
    Manually I can do a Paste/Link.
    I may not go with a link because for each site there can be upwards of 50 slides and...
  25. Replies
    11
    Views
    5,687

    Re: PowerPoint paste-link in VBA

    Excel spreadsheets.
  26. Replies
    11
    Views
    5,687

    PowerPoint paste-link in VBA

    Right now I am pasting as a picture:
    Want to do a paste-link.

    Set objMyGraph = objPPPres.Slides(intMySlideCount).Shapes.PasteSpecial
  27. Replies
    3
    Views
    442

    Re: Exit a procedure while running

    That did it.
    Thanks.
  28. Replies
    3
    Views
    442

    Re: Exit a procedure while running

    ok, i have been fooling around with this and here is the problem.
    The Esc key works fine to terminate the program BUT, the Excel window needs to have the focus. The program is copying from Excel...
  29. Replies
    3
    Views
    442

    Exit a procedure while running

    I want the user to be able to stop running the program.

    I created UserForm1 with a Cancel button:

    Private Sub CancelButton_Click()
    bCancelled = True
    Unload UserForm1
    End Sub

    A form...
  30. Replies
    1
    Views
    2,505

    Re: Code execution has been interrupted

    May have found the soultion.

    Seems the problem is started by doing a Ctrl-Break.

    One solution is to use at the beginning of the code:

    Application.EnableCancelKey = xlDisabled

    The other is...
  31. Replies
    1
    Views
    2,505

    Code execution has been interrupted

    I have been testing these all morning and no problems.
    Something wierd is going on.


    If I step-through or ckick the Cancel button on the message box,
    it goes to the procedure that called it and...
  32. Thread: exit sub

    by almagg
    Replies
    1
    Views
    581

    exit sub

    Excel info is being pasted into PowerPoint.

    I am sending this part to a few people here for a look-see.
    And I want them to be able to Exit because there are a lot of files involved.
    They will...
  33. Re: Resizing a PowerPoint picture with VBA

    here are some links i came up with that helped me figure it out.

    http://pptfaq.com/FAQ00352.htm
    http://www.erlandsendata.no/english/index.php?d=envbaolecontrolpowerpoint...
  34. Replies
    2
    Views
    1,699

    Re: PowerPoint 2003 VBA books

    well i don't know.

    i did a search and have not come up with anything free.
    and not even anything for $.

    i would have thought MS would have a PowerPoint VBA book like they do for Excel and...
  35. [RESOLVED] Resizing a PowerPoint picture with VBA

    I recorded a macro to get the code but it is still not working.
    Here is what I have in general:

    .
    .[other FSO dimensions]
    .
    Dim objPPApp As Object 'PowerPoint.Application
    Dim objPPPres As...
  36. Replies
    2
    Views
    1,699

    PowerPoint 2003 VBA books

    Any ideas where I can get aPowerPoint 2003 VBA book?

    I have not seen any books on the Microsoft site.

    Thanks.
  37. Re: Excel/Powerpoint - naming, saving PP/changing windows

    hmmm

    that did work. thought i had tried it.

    :-)
  38. Re: Excel/Powerpoint - naming, saving PP/changing windows

    ok it worked.
    i had to nest the 'with...' statements:

    [copy from Excel]

    With objPPPres
    .Slides.Add(Index:=intMySlideCount, Layout:=ppLayoutBlank).Select

    With...
  39. Re: Excel/Powerpoint - naming, saving PP/changing windows

    ok i switched back to Object.
    just to try it because i still could not add a slide.
    and it worked.

    Dim objPPApp As Object 'PowerPoint.Application
    Dim objPPPres As Object ...
  40. Re: Excel/Powerpoint - naming, saving PP/changing windows

    i do not think that will be a problem.
    in fact i had established a reference to MS PP 11.0 which was the only PP reference in the list.

    in fact this is what i have declared:

    Dim objPPApp As...
Results 1 to 40 of 91
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width