Solved

Open map location in a second userform

Posted on 2011-03-02
5
269 Views
Last Modified: 2012-05-11
Dear Experts,

I'm trying to make this code work:

Set appBrowser = Me.UserForm4.WebBrowser1

Open in new window


This is a follow-up question from here

As the initial userform grew with more and more fields, it became relevant that the map location would take too much space. A better alternative was to call the map from a button who would open a second userform.

I thought I will only change  a part of the code and show userform4 (which contains the map).

But maybe I'm wrong somewhere.

Any help woud be appreciated.

thanks
currentdb
0
Comment
Question by:currentdb
  • 3
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 500 total points
Comment Utility
Is this what you want?

Sid
userform-sample-v7.xlsm
0
 
LVL 1

Author Comment

by:currentdb
Comment Utility
Hi Sid,

Yes exactly! :)

While I was waiting, I also figured this:

Set browser = CreateObject("InternetExplorer.Application")
   browser.Visible = True
   browser.Navigate strGoogleMapURL

Open in new window


And it will open Internet Explorer rather than another userform. Looking now at the code you wrote for userform 4, I can see that it was much more easier than I thought. I just did not think to copy it on the userform4.

Thanks again for your ultra fast help! :)
0
 
LVL 1

Author Closing Comment

by:currentdb
Comment Utility
Thanks for your ultra enormous fast help! :)
0
 
LVL 30

Expert Comment

by:SiddharthRout
Comment Utility
You are welcome :)

Sid
0
 
LVL 1

Author Comment

by:currentdb
Comment Utility
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now