ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Worksheet to Column Distance (https://www.excelbanter.com/excel-worksheet-functions/32678-worksheet-column-distance.html)

Cosmo

Worksheet to Column Distance
 
Need to find the distance from left edge of worksheet to the right side of a
column. The old version of Excel used "get.cell(44) - get.cell(42). This
dosen't work in the newer versions.

Biff

Hi!

get.cell still works but you have to call it through a named formula:

InsertNameDefine
Name: Distance
Refers to: =Get.Cell(44)-Get.Cell(42)

Usage: =Distance

Here's what help says about Get.Cell 42 and 44:

42 The horizontal distance, measured in points, from the left edge of the
active window to the left edge of the cell. May be a negative number if the
window is scrolled beyond the cell.

44 The horizontal distance, measured in points, from the left edge of the
active window to the right edge of the cell. May be a negative number if the
window is scrolled beyond the cell.

Biff

"Cosmo" wrote in message
...
Need to find the distance from left edge of worksheet to the right side of
a
column. The old version of Excel used "get.cell(44) - get.cell(42). This
dosen't work in the newer versions.





All times are GMT +1. The time now is 04:06 AM.

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