PC Review


Reply
Thread Tools Rate Thread

Application.InputBox screen position doesn't work.

 
 
=?Utf-8?B?VG9tVGh1bWI=?=
Guest
Posts: n/a
 
      31st Jul 2007
I don't care about X in the following code, I just want to control where the
textbox appears onscreen. Changing the values of Left and Top has no effect.
Why? What am I missing?

Sub test()
Dim X
X = Application.InputBox(prompt:="Hello", Left:=10, Top:=10, Type:=5)
End Sub

--
TomThumb
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      31st Jul 2007
Try this one out
ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextBox.1", Link:=False, _
DisplayAsIcon:=False, Left:=10, Top:=10, Width:=88.5, Height:= _
13.5).Select
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"TomThumb" wrote:

> I don't care about X in the following code, I just want to control where the
> textbox appears onscreen. Changing the values of Left and Top has no effect.
> Why? What am I missing?
>
> Sub test()
> Dim X
> X = Application.InputBox(prompt:="Hello", Left:=10, Top:=10, Type:=5)
> End Sub
>
> --
> TomThumb

 
Reply With Quote
 
=?Utf-8?B?VG9tVGh1bWI=?=
Guest
Posts: n/a
 
      31st Jul 2007
John,

Thank you for your suggestion, but I would prefer a direct answer to my
question as to why the Application.InputBox example I gave does not work.
I'm reluctant to use your suggestion due to added complexity and possible
unintended consequences.

Tom
--
TomThumb


"John Bundy" wrote:

> Try this one out
> ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextBox.1", Link:=False, _
> DisplayAsIcon:=False, Left:=10, Top:=10, Width:=88.5, Height:= _
> 13.5).Select
> --
> -John
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "TomThumb" wrote:
>
> > I don't care about X in the following code, I just want to control where the
> > textbox appears onscreen. Changing the values of Left and Top has no effect.
> > Why? What am I missing?
> >
> > Sub test()
> > Dim X
> > X = Application.InputBox(prompt:="Hello", Left:=10, Top:=10, Type:=5)
> > End Sub
> >
> > --
> > TomThumb

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      31st Jul 2007
Works for me when I change the numbers for Left and Top.

Sub test()
Dim X
X = Application.InputBox(prompt:="Hello", Left:=310, Top:=100, Type:=5)
End Sub


Gord Dibben MS Excel MVP


On Tue, 31 Jul 2007 09:18:00 -0700, TomThumb
<(E-Mail Removed)> wrote:

>John,
>
>Thank you for your suggestion, but I would prefer a direct answer to my
>question as to why the Application.InputBox example I gave does not work.
>I'm reluctant to use your suggestion due to added complexity and possible
>unintended consequences.
>
>Tom


 
Reply With Quote
 
=?Utf-8?B?VG9tVGh1bWI=?=
Guest
Posts: n/a
 
      31st Jul 2007
Gord,

I tried your parameters, but the position of the Application.InputBox did
not budge. I neglected to mention that I dragged the Box to a new location
using my mouse cursor prior to testing the code in my example. I am at a
loss...

Tom
--
TomThumb


"Gord Dibben" wrote:

> Works for me when I change the numbers for Left and Top.
>
> Sub test()
> Dim X
> X = Application.InputBox(prompt:="Hello", Left:=310, Top:=100, Type:=5)
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
>
> On Tue, 31 Jul 2007 09:18:00 -0700, TomThumb
> <(E-Mail Removed)> wrote:
>
> >John,
> >
> >Thank you for your suggestion, but I would prefer a direct answer to my
> >question as to why the Application.InputBox example I gave does not work.
> >I'm reluctant to use your suggestion due to added complexity and possible
> >unintended consequences.
> >
> >Tom

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.Volatile False doesn't work with Application.Run? Hank Scorpio Microsoft Excel Programming 1 30th Aug 2009 04:04 PM
Application.Volatile False doesn't work with Application.Run? Hank Scorpio Microsoft Excel Misc 1 30th Aug 2009 04:04 PM
position of inputbox =?Utf-8?B?TGFycnkgU2FydG9yaXM=?= Microsoft Excel Programming 1 14th Jun 2005 05:37 PM
InputBox Screen Position James Montgomery Microsoft Excel Programming 4 10th Nov 2004 02:25 PM
Help - How to position application on dual screen monitor? =?Utf-8?B?Lk5ldCBJbXBhaXJlZA==?= Microsoft Dot NET Framework 1 11th Aug 2004 06:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:36 PM.