Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Trying to make the variable z equal to the cell previously found by the scrip
Sheets("Eclipse").Selec Range("A1").Selec Cells.Find(What:="time", After:=ActiveCell, LookIn:=xlFormulas, LookAt :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= False).Activat Cells.Find(What:="days", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) .Selec z = Cells.Find(What:="days", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) .Selec Cells(z + 1, "B").Valu x = ActiveCell.Addres Selection.End(xlDown).Selec y = ActiveCell.Addres Range(x, y).Selec Application.CutCopyMode = Fals Selection.Cop Sheets("Sheet1").Selec Range("B2").Selec ActiveSheet.Paste |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set z = Cells.Find(What:="days", After:=ActiveCell, LookIn:=xlFormulas,
LookAt:= _ xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) z.Select "Tim" wrote in message ... Trying to make the variable z equal to the cell previously found by the script Sheets("Eclipse").Select Range("A1").Select Cells.Find(What:="time", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False).Activate Cells.Find(What:="days", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _ .Select z = Cells.Find(What:="days", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _ .Select Cells(z + 1, "B").Value x = ActiveCell.Address Selection.End(xlDown).Select y = ActiveCell.Address Range(x, y).Select Application.CutCopyMode = False Selection.Copy Sheets("Sheet1").Select Range("B2").Select ActiveSheet.Paste |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Tom
|
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When i try and run that code Tom it says that z is not defined properly, failed to provide a valid object qualifier.
|
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim z as Range
-- Regards, Tom Ogilvy "Tim" wrote in message ... When i try and run that code Tom it says that z is not defined properly, failed to provide a valid object qualifier. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Did you declare z as a range?
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Tim" wrote in message ... When i try and run that code Tom it says that z is not defined properly, failed to provide a valid object qualifier. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CURRENT TIME IN DESTINATION CELL IF SOURCE CELL IS TEXT | Excel Discussion (Misc queries) | |||
How do i assign cell A1 to show the current cursor cell in Excel? | Excel Discussion (Misc queries) | |||
formula, move to previous cell when the current cell=0 or empty | Excel Discussion (Misc queries) | |||
Send cell value to custom pane based on current cell/row? | Excel Discussion (Misc queries) | |||
Syntax to define a variable for current file | Excel Programming |