Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Pause Macro to enter data in cell

Hi
within you macro use application.inputbox
and set the type:=8 to get a range
use this range as target cell

--
Regards
Frank Kabel
Frankfurt, Germany


rleonard wrote:
I have macro that goes to a cell then copies data; then using goto i
go to a general area;

at this point i need to manually locate where i want to paste data,
after which I want macro to resume.

Is their a way to pause macro?

thanks Bob Leonard


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Pause Macro to enter data in cell

After using macro goto function, how do i write line of code using application.inputbox set to tybe:=8

i trie
application.inbutbox(enter, type:=8

all i get is error messages, need hel

thank
Bob Leonar

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Pause Macro to enter data in cell

Hi
try something like
dim ret_value as range
set ret_value=application.inbutbox("select a range", type:=8)


--
Regards
Frank Kabel
Frankfurt, Germany


rleonard wrote:
After using macro goto function, how do i write line of code using
application.inputbox set to tybe:=8?

i tried
application.inbutbox(enter, type:=8)

all i get is error messages, need help

thanks
Bob Leonard

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Pause Macro to enter data in cell

Hi Frank
Thanks for you help, but I can not get my selection paste special to work
Following is my code

MsgBox "From GoTo Box, Select 'Sub Data' To Copy
Application.Dialogs(xlDialogFormulaGoto).Sho
Selection.Cop

MsgBox "From GoTo Box, Select 'GROUP' to Copy Sub Data to
Application.Dialogs(xlDialogFormulaGoto).Sho

Dim ret_value As Rang
Set ret_value = Application.InputBox("select a range", Type:=8
Application.Goto reference:=ret_value ' I added this line of code to display starting cell of rangr I had selected w/inputbox
ActiveCell.Activate ' I added this line of code, hoping it would make cell selected work w/selection paste special

ans = MsgBox(" Is this correct cell to enter Sub Score", vbYesNo)
If ans = vbNo Then _
Exit Sub
' Above code appears to work, but I receive error msg with following paste special code!
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

What do I have to change to allow macro paste data statrting at cell selected
The code i am pasting is 4 cell wide ex

col a col b col c col
sub01 joe blow 50 4

thanks again for your hel
Bob Leonar

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Pause Macro to enter data in cell

Hi Frank
Did you see my reply to your last suggestion re not being able to use selection paste special to paste data copied int
cell selected by msgbox
Bob Leonard


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
Macro Pause for selecting cell jo2109 Excel Discussion (Misc queries) 3 June 4th 09 02:05 AM
PAUSE EXCEL MACRO FOR INPUT OF DATA VARIABLE lynne b Excel Discussion (Misc queries) 3 September 11th 06 03:37 PM
Macro Pause during Dialog Box data entry kayabob Excel Discussion (Misc queries) 6 October 20th 05 02:58 PM
Pause Macro to enter data in cell Bob Phillips[_6_] Excel Programming 0 May 28th 04 04:41 PM
Programing a macro to pause while running for data entry Don Guillett[_4_] Excel Programming 0 August 27th 03 12:14 AM


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