Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default using a map to fill in a textbox

Hi
I have created a geographical map with different provinces in Excel 2003. I
have assigned a macro to each province and it works well.
I have also created a userform.

When the province textbox is prompting for input, I want the map to appear
and the user would click on a province. The name of the province would then
be pasted into the textbox and the map dissappear.

Is this possible?
Regards
Gideon
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,073
Default using a map to fill in a textbox

On May 12, 4:52 am, Gideon wrote:
Hi
I have created a geographical map with different provinces in Excel 2003. I
have assigned a macro to each province and it works well.
I have also created a userform.

When the province textbox is prompting for input, I want the map to appear
and the user would click on a province. The name of the province would then
be pasted into the textbox and the map dissappear.

Is this possible?
Regards
Gideon


I made a simple map with 6 shapes grouped together, renamed the group
MyMap and renamed each shape (Adelaide, Brisbane, Darwin, Melbourne,
Perth and Sydney). Each shape was separately assigned to the same
macro...

Sub Cap_City()
UserForm1.TextBox1.Value = Application.Caller
End Sub

The userform (UserForm1) has its ShowModal property set to False and
has 2 textboxes (TextBox1 and TextBox2) with the following
TextBox_Enter code...

Private Sub TextBox1_Enter()
ActiveSheet.Shapes("MyMap").Visible = True
End Sub

Private Sub TextBox2_Enter()
ActiveSheet.Shapes("MyMap").Visible = False
End Sub

When textbox1 is entered MyMap appears and when MyMap is clicked the
appropriate city name appears inside it.

When TextBox2 is entered MyMap disappears.

So I guess the answer to your question is yes.

Ken Johnson
  #3   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default using a map to fill in a textbox

Ken,
Could you provide a link here to d/l your sample book?
I'd like to learn how that works. Thanks.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,073
Default using a map to fill in a textbox

On May 13, 9:15 am, "Max" wrote:
Ken,
Could you provide a link here to d/l your sample book?
I'd like to learn how that works. Thanks.
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---


Hi Max,

It's a bare bones workbook I cobbled together just to test the
possibility.
I will email you a copy.

Ken Johnson
  #5   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default using a map to fill in a textbox

Thanks, Ken
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Erase fill print then bring fill back Homer Excel Discussion (Misc queries) 5 September 26th 07 01:50 PM
Fill in form to type Item descrictions and costs and fill in funct cradino Excel Worksheet Functions 0 July 16th 06 08:44 PM
Edit Fill Series - How do I fill using minute increments IUnknown Excel Discussion (Misc queries) 1 January 29th 06 12:50 PM
I have a list of data, fill in the gaps. FILL function won't work Triv Excel Discussion (Misc queries) 1 September 17th 05 02:33 PM
The fill feature in Excel that gives option to fill or copy KAHelman New Users to Excel 1 July 29th 05 07:47 PM


All times are GMT +1. The time now is 12:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"