If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Automation Macro...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-04, 16:37
hurricane hurricane is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
Smile Automation Macro...

Not to be redundantly redundant, but could I get someone's thoughts on a macro to do the following?

(1) Input Box asks for a specified range to copy, say a1:d10
(2) Input Box asks for a starting destination, say a11
(3) Input Box asks for the number of times the range inputted from (1) is to be copied, say 3 times
(4) Result: Range a1:d10 is copied (formulas and relative references changing as each copy of the range is made) to:
a11:d20
a21:d30

Please Help!! Many, many thanks in advance....

Hurricane
Reply With Quote
  #2 (permalink)  
Old 08-06-04, 17:37
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
As a starting point consider this approach:

Code:
    Dim myRng As Range
    Dim DestRng As Range
    Set myRng = Application.InputBox("Select Range", Type:=8)
    Set DestRng = Application.InputBox("Select Destination Range", Type:=8)
This allows you to select the range and destination. Of course, then you will have to copy and paste. Change to suit.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 08-09-04, 13:06
hurricane hurricane is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
shades,

thanks for the feedback. i will build out from here and post back my finished macro.

hurricane
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On