Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Vertical mid-point on sheet

Hello, I hope someone can help me with this daunting task

Im trying to code a program that will place a small graphic (a text box) on a number of spreadsheets just before they are printed. The program opens each file, activates the correct sheet, adds a graphic based on certain criteria, then prints the page, and closes the file without saving it. The graphic needs to be at the left side of the page (i.e. Left = 0). All of this so far is no problem.

The graphic (a text box) changes according to certain page contents, and also must take into account different margin settings, font sizes, and row heights. So I cant preset the graphic position.

The problem is I need to determine the €œTop€ position of the graphic to center it from top to bottom on the page to be printed (the vertical mid-point).

Does anyone know how to calculate the vertical mid-point of a page using VBA? (I am assuming the €œTop€ and €œLeft€ commands are in points?)

This is all I need to perfect my program, please help if you can! Your example code is what I need. Thanks much in advance for your assistance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding only vertical error bars to a single data point in a series Chris Wagner, Northern Michigan Univ. Charts and Charting in Excel 6 May 13th 23 11:44 AM
copying formula for horizontal data to vertical in different sheet twototango Excel Worksheet Functions 11 August 30th 08 01:19 AM
Decimal Point Vertical Alignment in Excel 2003 Gatsby New Users to Excel 7 November 23rd 07 02:09 PM
how to copy a cell with formula from sheet 1 (data is all vertical) into sheet 2 parag Excel Worksheet Functions 3 June 15th 06 10:29 PM
point to one number on each sheet that will be in many formulas cindana New Users to Excel 1 February 15th 06 12:05 AM


All times are GMT +1. The time now is 11:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"