Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Need code to use within Macro to display value of a worksheet range
Sub golfScores( Workbook range "A2" value is = ? with above value then can edit rest of macro to enter golf score data in that row Thank Bob Leonard |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
range("a2").value=3 'or "whatever"
-- Don Guillett SalesAid Software "rleonard" wrote in message ... Need code to use within Macro to display value of a worksheet range. Sub golfScores() Workbook range "A2" value is = ?? with above value then can edit rest of macro to enter golf score data in that row! Thanks Bob Leonard |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub GolfScores()
Dim sAddr a sString, sVal as String Dim vVal as Variant Dim rng as Range With Workbooks("Golfscores.xls").Worksheets("Scores") sAddr = .Range("A2").Address sVal = .Range("A2").Text vVal = .Range("A2").Value set rng = .Range("A2") msgbox sAddr & " value is = " & sVal ..Cells(rng.row,"F").Value = vVal End With end Sub Might give you some ideas -- Regards, Tom Ogilvy "rleonard" wrote in message ... Need code to use within Macro to display value of a worksheet range. Sub golfScores() Workbook range "A2" value is = ?? with above value then can edit rest of macro to enter golf score data in that row! Thanks Bob Leonard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Code | Excel Discussion (Misc queries) | |||
Please Help with Macro Code | Excel Discussion (Misc queries) | |||
VBA code for macro help | Excel Discussion (Misc queries) | |||
Deleting code from a macro (by a macro) | Excel Discussion (Misc queries) | |||
Macro code | Excel Discussion (Misc queries) |