Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi again John,
Dim lngRow As Long Dim lngCol As Long Dim varValue As Variant lngRow = rngToFind.Row 'Returns the row number lngCol = rngToFind.Column 'Returns the column number varValue = c.Value 'Returns the value in the cell Cells(lngRow, "C") = c.Value 'Copies c.value to column C same row c.Offset(0, 3).Select 'Addresses a column 3 to right c.Offset(0, -3).Select 'Addresses a column 3 to left c.Offset(3, 0).Select 'Addresses a row 3 down c.Offset(-3, 0).Select 'Addresses a row 3 to up 'You don't have to select the cell when using Offset. Example:- c.offset(0,-3).value = c.value 'Copies c.value to cell 3 to left GUIDE for Offset:_ The offset number is the number of times you would have to press the right/left/down or up arrow to get to the required position. Hope this helps. -- Regards, OssieMac |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
is there a formula that will subtract todays date from a hire date | Excel Worksheet Functions | |||
Making a date go red, if date passes todays date. | Excel Worksheet Functions | |||
Exel increment date problem wrt todays date. | Excel Worksheet Functions | |||
Create a button that will date stamp todays date in a cell | Excel Discussion (Misc queries) | |||
When I open my past invoice it keeps changing date to todays date | Excel Worksheet Functions |