Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Chip, Thanks very much for your help, the code works great! Andrew in article , Chip Pearson at wrote on 27/7/03 9:03 PM: A better solution is Sub CopySum() Dim Arr As Variant Dim N As Long Dim MyDataObj As New DataObject Dim str As String Arr = Split(Selection.Address, ",") For N = LBound(Arr) To UBound(Arr) str = str & "," & Selection.Worksheet.Name & "!" & Arr(N) Next N str = Mid(str, 2) MyDataObj.SetText "=sum(" & str & ")" MyDataObj.PutInClipboard End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select the ActiveSheet & the sheet next to it | Excel Discussion (Misc queries) | |||
Can't get ActiveSheet to work... | Excel Discussion (Misc queries) | |||
ActiveSheet.Paste (error) | Excel Worksheet Functions | |||
ActiveCell or ActiveSheet | Excel Worksheet Functions | |||
ActiveSheet.Paste - Error help? | Excel Discussion (Misc queries) |