Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Input for Macros

Hi,

I am trying to write a macro that will be used to update a file. I want to
have some sort of stored input like you can in C++.

something like
input "what year is it?"
input a

....or however the C code goes (its been a couple years).

Is there any way to do this for an excel macro?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Input for Macros


Hello Sean,

You can prompt user input in Excel using the VBA *InputBox function*
It displays a dialog with the prompt you want to display. The use
types in a response and and clicks one of two buttons, OK or Cancel
Entering nothing and clicking OK is the same as clicking Cancel. Al
responses are string data. If you want more functionality, you can us
the *InputBox method*. See the VBA help files for details on thei
use.

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=49629

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
lotus uses {?} for input, what does excel use (macros) jmoore New Users to Excel 2 December 31st 07 11:48 PM
Input for Macros bpeltzer Excel Programming 0 December 27th 05 08:15 PM
Input for Macros Sean H Excel Programming 1 December 27th 05 08:05 PM
macros or input box ronald Excel Programming 2 August 5th 05 04:14 PM
How can I validate data input by macros? ewan72 Excel Programming 2 February 23rd 05 04:13 PM


All times are GMT +1. The time now is 01:41 PM.

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"