![]() |
manipulate / perform math on cell location a=a+1
hi all,
i have a formula that results in... variable 'NBCell' = $I$102 how can i change this value's column letter or row number? for example, how can i... change $I$102 into $A$102 (I turns into A) change $I$102 into $I$104 (102 + 2 = 104) change $I$102 into $A$104 (I turns into A and 102 + 2 = 104) thank you very much, marc |
manipulate / perform math on cell location a=a+1
Your question is a little thin on exactly what you are up to but here is a
general answer... sub Test dim strAddress as string dim strAddressNew as string strAddress = $I$102 strAddressNew = cells(range(strAddress).row, "A").address msgbox strAddressNew strAddressNew = range(strAddress).offset(2, 0).address msgbox strAddressNew strAddressNew = cells(range(strAddress).row + 2, "A").address msgbox strAddressNew end sub -- HTH... Jim Thomlinson "mmadden2" wrote: hi all, i have a formula that results in... variable 'NBCell' = $I$102 how can i change this value's column letter or row number? for example, how can i... change $I$102 into $A$102 (I turns into A) change $I$102 into $I$104 (102 + 2 = 104) change $I$102 into $A$104 (I turns into A and 102 + 2 = 104) thank you very much, marc |
All times are GMT +1. The time now is 02:45 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com