Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there, please, help required with VB
I want to use a macro to copy the cell-contents from a row, found with the "Find" command using following code: (using an inputbox to get the Find-value). Dim SDorderno, Title, MyValue Message = "Fuctuurinvoer voor Salesordernr." Title = "Demo InputBox" MyValue = InputBox(Message, Title, Default) Columns("B:B").Select Selection.Find(What:=SDorderno, After:=ActiveCell, LookIn:=xlValues, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False).Activate ActiveCell.Select ActiveCell.Offset(0, 1).Activate Application.CutCopyMode = False Selection.Copy Sheets("Invoerscherm").Select Range("K10").Select ActiveSheet.Paste "SDorderno" contains the value to find in column B. However, the cell with the matching data is not activated. Instead, the column B remains activated How can I get the required cell to be activated? Tx. Frank |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
how do I turn on document "editing time" found on advanced proper. | Excel Discussion (Misc queries) | |||
Search for the word "continued", if found, delete that row + 10 rows above | Excel Programming | |||
Getting "compile error" "method or data member not found" on reinstall | Excel Programming |