Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: (VBA) myCell.Value= 2, myCell.Text=xlLandscape  (Read 9151 times)

0 Members and 1 Guest are viewing this topic.

keyven

  • Guest
(VBA) myCell.Value= 2, myCell.Text=xlLandscape
« on: January 25, 2007, 06:57:24 PM »
How do I accomplish this? As in setting myCell to set the integer to 2 for any references, but to the end-user, it should just show "xlLandscape"

Thanks in adv

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: (VBA) myCell.Value= 2, myCell.Text=xlLandscape
« Reply #1 on: January 26, 2007, 06:36:34 AM »
Not sure that myCell would have a text property. You could reference another cell to get a value.

A1 = 2
A2 could then have a formula: =if(A1=2,"xlLandscape")

You'll create a circular reference if you attempt to use the cell being referenced in it's own formula.

 8-)
« Last Edit: January 26, 2007, 06:37:16 AM by Sidewinder »
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

keyven

  • Guest
Re: (VBA) myCell.Value= 2, myCell.Text=xlLandscape
« Reply #2 on: January 26, 2007, 09:45:30 AM »
Thanks :) Resolved! ;D