Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:46:19+00:00 2026-06-14T10:46:19+00:00

I have a simple inputbox in my VBA code. I would like to set

  • 0

I have a simple inputbox in my VBA code. I would like to set its starting position. I know the parameters [LEFT] and [TOP] should do that, but they won’t work.

Here is what I have:

x = Application.InputBox(MyPrompt, MyTitle, , 50, 50)

and here is the function syntax

 InputBox(Prompt, Title, Default, Left, Top, HelpFile, HelpContextId, Type) 

(I left the third parameter [DEFAULT] blank).

No matter what numbers I use for LEFT and TOP, the inputbox always starts at the same place.
What is wrong with that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:46:20+00:00Added an answer on June 14, 2026 at 10:46 am

    There’s a difference between

    InputBox("prompt","title","default", 10000,10000) 
    

    which does use the top/left parameters, and

    Application.InputBox("prompt","title","default", 10000,10000)
    

    which doesn’t.

    Note the top/left are in Points, so your provided values will need to be larger than you may be used to…

    http://msdn.microsoft.com/en-us/library/office/aa195768(v=office.11).aspx

    “The InputBox method differs from the InputBox function in that it allows selective validation of the user’s input, and it can be used with Microsoft Excel objects, error values, and formulas. Note that Application.InputBox calls the InputBox method; InputBox with no object qualifier calls the InputBox function.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an iPhone app and would like to have a simple text
I have a simple form with one input field. I set focus on this
I have a simple form with basic info e.g. <label>*Name:</label> [inputbox] <label>*email:</label> [inputbox] <label>Company:</label>
I have a simple label, and a number input box: The code for which
I have a simple site, which has a form and an inputbox. I want
I'd like to have a simple select input box with a couple options for
I have a Windows program which generates forms. It takes the Top/Left properties at
I have a pretty simple set up for a messaging application. I simply get
I have simple table in Sybase -- Creating table 'SimpleText' CREATE TABLE [dbo].[SimpleText] (
I have simple class with width and height member fields which define number of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.