Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In macro, the following will do copy and paste, but what
is I need the index 7 and 14 below to be a variable? Range("C7:D14").Select Selection.Copy Range("F2").Select ActiveSheet.Paste |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim m As Long
Dim n As Long Range("C" & CStr(m) & ":D" & CStr(n)).Select Selection.Copy Range("F2").Select ActiveSheet.Paste "Lee" wrote in message ... In macro, the following will do copy and paste, but what is I need the index 7 and 14 below to be a variable? Range("C7:D14").Select Selection.Copy Range("F2").Select ActiveSheet.Paste |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim r1 As Long, c1 As Long, r2 As Long, c2 As Long
r1 = 7: c1 = 3: r2 = 14: c2 = 4 Range(Cells(r1, c1), Cells(r2, c2)).Copy Range("F2") "Lee" wrote in message ... In macro, the following will do copy and paste, but what is I need the index 7 and 14 below to be a variable? Range("C7:D14").Select Selection.Copy Range("F2").Select ActiveSheet.Paste |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Copy, paste without file name referenced after paste | Excel Discussion (Misc queries) | |||
Copy; Paste; Paste Special are disabled | Excel Discussion (Misc queries) | |||
Excel cut/Paste Problem: Year changes after data is copy and paste | Excel Discussion (Misc queries) | |||
I cannot paste from one workbook to another. Copy works, paste do. | Excel Discussion (Misc queries) |