Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Pausing macro for user Excel input

Ed,

Thanks for the suggestion. What I'm creating is a journal entry spreadsheet
to be uploaded into our general ledger accounting system. The first column is
for department number and the second column is for account number. Instead of
using combo box controls I've used the Excel Data/Validation/List feature;
because the chart of accounts is so long I don't want the user to have to
scroll down a list using a combo box but do want to control the input so that
only valid values from my chart of accounts are accepted.

I'm not too familiar with creating forms. Can I use the Data/Validation
feature in a form text box or would I have to use a combo box?

Thanks,
--
TomD


"Ed" wrote:

What about a UserForm that has five TextBoxes for input? Tab from box to
box; Enter would then load the data in the next available row's A-E and
clear the form for the next row's data. This can all be done using ranges,
so no need to actively move from cell to cell. Any other way might actually
add time to the input process, because the operator will have to tell the
macro that input is done -your idea has that done for each cell!

Ed

"TomD" wrote in message
...
I would like to create a macro that would improve efficiency in data input

to
an Excel spreadsheet. My operator needs to enter five columns of data per
row, then go to the next row's column A and start over. I've created a

simple
do loop to control cursor movement, but don't know how to pause the macro
while the operator keys in data. Is there any way to do this in VBA?

Here's what I have so far:

Sub detailline()
Dim c As Integer

Do Until c = 5
ActiveCell.Offset(0, 1).Select
c = c + 1
' I need to pause the macro at each column to allow for user input

Loop

ActiveCell.Offset(1, -5).Select
c = 0

End Sub

Thanks for your help,


--
TomD




  #2   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 399
Default Pausing macro for user Excel input

It looks like you've got some other, better solutions. But if you'd like to
learn some more when you have time, check out www.contextures.com and the
VBA Help files for ListBox and ComboBox. The upshot is you have to create
lists for your data validation to work, and yes, you can put any list into a
ListBox, ComboBox, Option Buttons or CheckBoxes. Having said that, I have
to admit I have not done hardly any of that, and you would be better off
getting someone else's input on how to make it work well.

Ed

"TomD" wrote in message
...
Ed,

Thanks for the suggestion. What I'm creating is a journal entry

spreadsheet
to be uploaded into our general ledger accounting system. The first column

is
for department number and the second column is for account number. Instead

of
using combo box controls I've used the Excel Data/Validation/List feature;
because the chart of accounts is so long I don't want the user to have to
scroll down a list using a combo box but do want to control the input so

that
only valid values from my chart of accounts are accepted.

I'm not too familiar with creating forms. Can I use the Data/Validation
feature in a form text box or would I have to use a combo box?

Thanks,
--
TomD


"Ed" wrote:

What about a UserForm that has five TextBoxes for input? Tab from box to
box; Enter would then load the data in the next available row's A-E and
clear the form for the next row's data. This can all be done using

ranges,
so no need to actively move from cell to cell. Any other way might

actually
add time to the input process, because the operator will have to tell

the
macro that input is done -your idea has that done for each cell!

Ed

"TomD" wrote in message
...
I would like to create a macro that would improve efficiency in data

input
to
an Excel spreadsheet. My operator needs to enter five columns of data

per
row, then go to the next row's column A and start over. I've created a

simple
do loop to control cursor movement, but don't know how to pause the

macro
while the operator keys in data. Is there any way to do this in VBA?

Here's what I have so far:

Sub detailline()
Dim c As Integer

Do Until c = 5
ActiveCell.Offset(0, 1).Select
c = c + 1
' I need to pause the macro at each column to allow for user input

Loop

ActiveCell.Offset(1, -5).Select
c = 0

End Sub

Thanks for your help,


--
TomD






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
pausing a macro to input cell contents blipityblap New Users to Excel 3 January 13th 09 11:01 PM
Spreadsheet pausing,calculating cells,up2 100%,each input,why? Matticace Excel Discussion (Misc queries) 1 August 23rd 05 01:33 PM
Pausing macro for user Excel input STEVE BELL Excel Programming 1 July 8th 05 04:28 PM
macro that promt user for input Fercho Excel Programming 1 March 16th 05 04:17 AM
Pausing a macro for user input Wayne[_5_] Excel Programming 1 October 24th 03 10:34 PM


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