Dynamic macro

P

PCOR

I dont know is this is possible...but if it is I am suee one of the wizzards
will tell me how to do this
Say you wanted to copy a range from one sheet to another sheet where the
range changes daily.
Could you have the macro request the range required - type in the required
info- and then execute the copy function for that range.
Thanks a lot
 
R

Ron de Bruin

You can use something like this

Sub test()
Dim mycell As Range
Set mycell = Application.InputBox( _
prompt:="Select a range", Type:=8)
mycell.Copy Sheets("Sheet2").Range("A1")
End Sub
 
P

PCOR

Works VERY well
Many thanks
Ron de Bruin said:
You can use something like this

Sub test()
Dim mycell As Range
Set mycell = Application.InputBox( _
prompt:="Select a range", Type:=8)
mycell.Copy Sheets("Sheet2").Range("A1")
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top