Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I need to figure out how to write a macro that will do what Dave Peterson suggests in this link http://www.excelforum.com/showthread.php?t=525679 with whatever cells I select. Any ideas? -- DKY ------------------------------------------------------------------------ DKY's Profile: http://www.excelforum.com/member.php...o&userid=14515 View this thread: http://www.excelforum.com/showthread...hreadid=527715 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Option Explicit
Sub testme() Dim myCell As Range Dim myRng As Range Dim myArea As Range Set myRng = Selection Set myCell _ = ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell) .Offset(1, 1) myCell.Copy For Each myArea In myRng.Areas myArea.PasteSpecial Paste:=xlPasteAll, _ Operation:=xlAdd, SkipBlanks:=False, Transpose:=False Next myArea Application.CutCopyMode = False End Sub DKY wrote: I need to figure out how to write a macro that will do what Dave Peterson suggests in this link http://www.excelforum.com/showthread.php?t=525679 with whatever cells I select. Any ideas? -- DKY ------------------------------------------------------------------------ DKY's Profile: http://www.excelforum.com/member.php...o&userid=14515 View this thread: http://www.excelforum.com/showthread...hreadid=527715 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Well, that works... Thanks again Dave!! I appreciate it -- DK ----------------------------------------------------------------------- DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451 View this thread: http://www.excelforum.com/showthread.php?threadid=52771 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Write macro to lock selected sheet when run | Excel Discussion (Misc queries) | |||
How to write a quote formula using only the cells selected with va | Excel Worksheet Functions | |||
Macro to take selected cells times a selected cell | Excel Programming | |||
How do I write VB to run Macro when sheet selected? | Excel Programming | |||
Macro to format selected cells | Excel Programming |