Again the statement below isn't a good statement. You have two equal
statements with an OR . what is the Or doing. There is no "IF". Correct
this statement!
BrowserPresent = BrowserPresent Or TypeName(anOLEObj.Object)
= "WebBrowser"
> Have got the browsers present at the top of my board and working great! they
> just display as windows, no address bar or anything, i control the address by
[quoted text clipped - 108 lines]
> > > > > > > > > > > >
> > > > > > > > > > > > Cells(ActiveCell.Row, "ar").Value = ActiveSheet.Shapes("WebBrowser2").Address
Atishoo - 24 Jul 2008 14:53 GMT
But that statement is only part of a macro used to create and place the web
box it doesnt have any current role in my workbook, and it is not a working
part of the macro but a direction to the user, that statement aside the web
boxes are in place and working i just cant retrieve the web address
> Again the statement below isn't a good statement. You have two equal
> statements with an OR . what is the Or doing. There is no "IF". Correct
[quoted text clipped - 115 lines]
> > > > > > > > > > > > >
> > > > > > > > > > > > > Cells(ActiveCell.Row, "ar").Value = ActiveSheet.Shapes("WebBrowser2").Address
Joel - 24 Jul 2008 16:22 GMT
I think you are getting the filename as the default browser addrress because
yuo never changed it. some of you code is dependant on the value of
BrowserPresent (there is an IF stement using this value) and I'm not sure
what the value is set to. fix the obvious problems before you look at the
more difficult problems. You never know how bad lines of code are effecting
the rest of your code.
> But that statement is only part of a macro used to create and place the web
> box it doesnt have any current role in my workbook, and it is not a working
[quoted text clipped - 120 lines]
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Cells(ActiveCell.Row, "ar").Value = ActiveSheet.Shapes("WebBrowser2").Address
Atishoo - 24 Jul 2008 17:33 GMT
hm! didnt think of it that way! ill have a crack tonight!
thanks John
> I think you are getting the filename as the default browser addrress because
> yuo never changed it. some of you code is dependant on the value of
[quoted text clipped - 127 lines]
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Cells(ActiveCell.Row, "ar").Value = ActiveSheet.Shapes("WebBrowser2").Address
Atishoo - 25 Jul 2008 17:13 GMT
Nope its no blinkin good! kept it simple as possible! just added a browser
manually from the control toolbox to a blank workbook set the address via
navigate 2 on a workbook open event and still I cant get the bloomin
displayed site url to return!
what the heck am i doing wrong ??? i have an idea though! I work on the 4th
floor and its one heck of a drop for a computer!
> I think you are getting the filename as the default browser addrress because
> yuo never changed it. some of you code is dependant on the value of
[quoted text clipped - 127 lines]
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Cells(ActiveCell.Row, "ar").Value = ActiveSheet.Shapes("WebBrowser2").Address
Atishoo - 25 Jul 2008 20:01 GMT
Yeah!!
think I may not have explained myself at all properly Have just sussed it
this doe the trick:-
Cells(ActiveCell.Row, "ar").Value = Me.WebBrowser2.LocationURL
thanks John
> Again the statement below isn't a good statement. You have two equal
> statements with an OR . what is the Or doing. There is no "IF". Correct
[quoted text clipped - 115 lines]
> > > > > > > > > > > > >
> > > > > > > > > > > > > Cells(ActiveCell.Row, "ar").Value = ActiveSheet.Shapes("WebBrowser2").Address