Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pausing a macro to select a cell

I would like to create a macro the copies data from a
list of named ranges and then do a past values into a
worksheet for trends. That, by itself, is no problem.
However, each month the paste values will be in a new
column (one for each month). Is there a way to pause the
macro so I can click the first cell in the receiving
range differently each month?

Thanks,
Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Pausing a macro to select a cell

Jim,

You could do one of two things

Application.InputBox with a type of 8, this will allow the user to select a
cell and its address is returned from the input box

you could use the date to work out which is the appropriate column.

Post back with some specific details if you want more help

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Jim" wrote in message
...
I would like to create a macro the copies data from a
list of named ranges and then do a past values into a
worksheet for trends. That, by itself, is no problem.
However, each month the paste values will be in a new
column (one for each month). Is there a way to pause the
macro so I can click the first cell in the receiving
range differently each month?

Thanks,
Jim



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Pausing a macro to select a cell

try putting code in like this at the point where you need a break in the cod

Dim Start as Varian


Start = Time
Do While Timer < Start + 5 ' make the 5 larger if you need more tim
DoEvents ' Yield to other processes
Loo

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 a macro to input cell contents blipityblap New Users to Excel 3 January 13th 09 11:01 PM
Pausing a macro Alex.W Excel Discussion (Misc queries) 2 August 10th 07 11:30 AM
Is there a way of pausing a macro Shazza Excel Discussion (Misc queries) 2 March 12th 07 10:59 PM
Pausing a VBA macro Dean Taylor Excel Programming 1 August 1st 03 05:44 PM


All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"