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

I have a "fill in" form on the first worksheet that I want to write a macro
for that will allow the user to go the second worksheet, choose a value from
that second worksheet and have the macro automatically fill in the value on
the first worksheet. The macro that I have written will jump the user into
the second worksheet, but I can not get it to allow the user to choose the
value, copy it and
jump back to first worksheet and paste. I also can write a macro that will
jump to the second worksheet and then jump back to the first worksheet and
paste the cell that is already selected when the workbook opens. I just
can't get the macro to
allow the user to choose the desired value.
--
Lisa
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Pausing in Macros

Check out Application.InputBox, especially its last argument.

NickHK

"Lisa" ...
I have a "fill in" form on the first worksheet that I want to write a macro
for that will allow the user to go the second worksheet, choose a value
from
that second worksheet and have the macro automatically fill in the value
on
the first worksheet. The macro that I have written will jump the user
into
the second worksheet, but I can not get it to allow the user to choose the
value, copy it and
jump back to first worksheet and paste. I also can write a macro that
will
jump to the second worksheet and then jump back to the first worksheet and
paste the cell that is already selected when the workbook opens. I just
can't get the macro to
allow the user to choose the desired value.
--
Lisa



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default Pausing in Macros

How many cells can the user choose from? Are they all in 1 column or
1 row? Are they in one contiguous block or scattered around the
worksheet?

On Jun 7, 10:44?am, Lisa wrote:
I have a "fill in" form on the first worksheet that I want to write a macro
for that will allow the user to go the second worksheet, choose a value from
that second worksheet and have the macro automatically fill in the value on
the first worksheet. The macro that I have written will jump the user into
the second worksheet, but I can not get it to allow the user to choose the
value, copy it and
jump back to first worksheet and paste. I also can write a macro that will
jump to the second worksheet and then jump back to the first worksheet and
paste the cell that is already selected when the workbook opens. I just
can't get the macro to
allow the user to choose the desired value.
--
Lisa



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Pausing in Macros

Lisa wrote:
I have a "fill in" form on the first worksheet that I want to write a macro
for that will allow the user to go the second worksheet, choose a value from
that second worksheet and have the macro automatically fill in the value on
the first worksheet. The macro that I have written will jump the user into
the second worksheet, but I can not get it to allow the user to choose the
value, copy it and
jump back to first worksheet and paste. I also can write a macro that will
jump to the second worksheet and then jump back to the first worksheet and
paste the cell that is already selected when the workbook opens. I just
can't get the macro to
allow the user to choose the desired value.


Since you're using a form, how about adding the "RefEdit"-control to the
form. This control mimics Excel's range-picking functionality.

If it is not on your Form Toolbox yet, rightclick on it, and select
"Additional Controls..." - Scroll down to the "RefEdit.Ctrl" and check
the box in front - finish with "OK".

See http://support.microsoft.com/kb/213776/ for more info.

HTH, CoRrRan
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
VBA macro pausing [email protected] Excel Worksheet Functions 2 February 23rd 09 01:19 PM
Pausing Macro Patches New Users to Excel 2 March 28th 07 03:00 AM
Is there a way of pausing a macro Shazza Excel Discussion (Misc queries) 2 March 12th 07 10:59 PM
Pausing or waiting in VBA Brad Excel Programming 2 November 6th 06 05:07 PM
Pausing macros phil2006[_18_] Excel Programming 5 June 28th 06 03:39 PM


All times are GMT +1. The time now is 02:04 AM.

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"