LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Pop up window prompt for name/address upon opening of file

I have an order form that I have created on an Excel spreadsheet and
would like to insert some code that would have a window pop up to
prompt the user for their name, address and voicemail box #. I would
like the pop up to occur each time the document is opened. I am not
very familiar with VB but I found this code (see below- I already
modified it for my document- cell reference, and text) but don't know
where to put it in the script and how to set it up so that it runs each
time the form gets opened. Also not sure as to where to put the <
symbols.

Sub getvalue()
Range("B3").Value = InputBox("Enter your Name")
Next
Range("D3").Value = InputBox("Enter your Shipping Address")
Next
Range("H3").Value = InputBox("Enter your Voicemail Box #")
End Sub

Additionally, if my Excel document already contains some data
validation lists will that create a problem and if so whats the best
way to fix it.

My knowledge on VB is pretty lacking...Any help would be greatly
appreciated!

 
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
Prompt message when opening a file Pernod Excel Worksheet Functions 1 October 13th 06 09:08 PM
Prompt Message when opening a file Pernod Excel Worksheet Functions 0 October 13th 06 08:09 PM
auto prompt file insert object when opening a template romeeko Excel Programming 1 August 15th 06 03:38 AM
XL VB noobie needs help - macro opening file already in use prompt Bry Excel Programming 0 August 9th 06 12:01 PM
Dialog prompt during opening of file markuss New Users to Excel 1 June 21st 06 11:32 AM


All times are GMT +1. The time now is 01:05 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"