+ Reply to Thread
Results 1 to 20 of 20

Getting Macros to Run Together (with same range selection as input)

Hybrid View

  1. #1
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Getting Macros to Run Together (with same range selection as input)

    I was actually addressing the second part, but got the variable name wrong. Replace
    Set CloudData = Application.InputBox("Please select a range with the incident information you wish to summarize.", _
                                             "Specify Incident Information", Selection.Address, , , , , 8)
    with just
    Set CloudData = Selection
    I would also replace
    ActiveSheet.OLEObjects.Add(ClassType:="Shell.Explorer.2", Link:=False, _
            DisplayAsIcon:=False, Left:=383.25, Top:=45, Width:=324.75, Height:= _
            225).Select
        ActiveSheet.Shapes("WebBrowser1").ScaleWidth 1.480369515, msoFalse, _
            msoScaleFromTopLeft
        ActiveSheet.Shapes("WebBrowser1").ScaleHeight 1.3966666667, msoFalse, _
            msoScaleFromTopLeft
    with
    With ActiveSheet.OLEObjects.Add(ClassType:="Shell.Explorer.2", Link:=False, _
            DisplayAsIcon:=False, Left:=383.25, Top:=45, Width:=324.75, Height:= _
            225).ShapeRange
        .ScaleWidth 1.480369515, msoFalse, msoScaleFromTopLeft
        .ScaleHeight 1.3966666667, msoFalse, msoScaleFromTopLeft
    End With
    Good luck.

  2. #2
    Registered User
    Join Date
    10-26-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Getting Macros to Run Together (with same range selection as input)

    Thank you so much for that, I should have been able to figure that run off selection out. I don't really know where to start "Object doesn't support this property or method" problem.

    I hope/think it should be possible as the tag cloud generating subroutine (the third subroutine called WordCloud) works when its used in isolation and prints to a WebBrowser already present on a sheet. I tested that portion of my code by having a sheet named "Cloud" that had a WebBrowser already on it

    With Sheets("Cloud").WebBrowser1
        .Silent = True
        .Navigate (myFile)
        Do
            DoEvents
        Loop Until .ReadyState = READYSTATE_COMPLETE
        .Document.body.Scroll = "no"
    End With
    But now trying to incorporate it with the frequency creation subroutine "MakeTable3" it's telling me "Object doesn't support this property or method." But I know it does support it! Anyhow thanks again in advance for any help this forum is a life saver...can't wait to be done with this little tool and its so very close at this point.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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