[.net] excel - Как отобразить позицию формы в верхней части activecell?
about a year ago, I searched this forum and I saw a sample (.NET) showing the form in a relative position compared to the specified cell, In VBA, I would need to use a fairly sophisticated API to do this, but now I can use .NET. No more remembering the keyword to find it. I tried searching and it looks like I will need "PointsToScreenPixelsY" and "PointsToScreenPixelsX" but I'm worried that I might miss anything.. Can you give me a solution? Many thanks!
Что я уже пробовал:
With ActiveWindow UserForm1.Left = .PointsToScreenPixelsX(cell.Left) UserForm1.Top = .PointsToScreenPixelsY(cell.Top) End With