Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to macro below to work on the current row instead of row 3. Please
help. Selection.Copy Range("F3").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Range("F3:G3").Select Selection.Replace What:="=", Replacement:="=", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
with activesheet
with .cells(activecell.row,"F").resize(1,2) .copy .pastespecial paste:=xlpastevalues .replace What:="=", Replacement:="=", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False end with end with I think... TKS_Mark wrote: I want to macro below to work on the current row instead of row 3. Please help. Selection.Copy Range("F3").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Range("F3:G3").Select Selection.Replace What:="=", Replacement:="=", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
use current year in macro | Excel Discussion (Misc queries) | |||
macro for current time | Excel Discussion (Misc queries) | |||
Name of Current Macro running? | Excel Programming | |||
Macro to advance current row by 1 | Excel Programming | |||
Use current sheet name in Macro | Excel Programming |