ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Never tried this location in excel (https://www.excelbanter.com/excel-programming/381213-re-never-tried-location-excel.html)

Ken

Never tried this location in excel
 
Curt

If what you mean by "calling location" is the address of the active
cell when the procedure is called and the "preceding column" is the
column to the immediate left of that active cell, it should be pretty
easy. Something like


sub test()
activecell.offset(0,-1).value="data"
end sub


Good luck

Ken
Norfolk, Va



Curt wrote:
Is it possible to call a procedure and have excel put in cell address of
calling location. Have a procedure that must be called from many locations
and return data to location in precedding column.
Never tried this.




All times are GMT +1. The time now is 06:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com