Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I'm attemptng the following, to put mVal into any mCell in mSheet Sub test(mSheet, mVal, mCell) Dim wk As Workbook Set wk = ActiveWorkbook Dim sht As Worksheet Set sht = wk.Worksheets(mSheet) With sht Range(mCell).Select ActiveCell.Value = mVal End With Set sht = Nothing Set wk = Nothing End Sub It doesn't work, but also doesn't report any errors. It there anything obviously wrong with it? Thanks - Kirk |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code fails when sheet is protected | Excel Discussion (Misc queries) | |||
Copy paste code fails | Excel Programming | |||
Code fails if ran more than once | Excel Programming | |||
Named Range Fails in VBA Code | Excel Programming | |||
Logitech's newest mouse scroll fails in VBE code pane | Excel Programming |