Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Excel Cell Properties

Status
Not open for further replies.

ravenx

IS-IT--Management
Apr 13, 2004
3
FR
With VBA and Excel, how can I loop through the properties of a given cell and determine their values? I'm looking for something like
Code:
Dim MyProp           as Property
Dim MyCell           as Range
Set MyCell = "$A$1"
For each MyProp in MyCell.Properties
   Debug.Print MyProp.Name & " " & MyProp.Value
Next
Unfortunately, this won't work. Any suggestions??
 
Consider this:
you can write your results to anywhere but if you just need to write them to say the cell to the right of it then...

Sub determinecellvalue()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.Calculation = xlCalculationManual
[A1].Activate
Do While Not IsEmpty(ActiveCell.Value)
ActiveCell.Offset(0, 1).Value = ActiveCell.Value
ActiveCell.Offset(1, 0).Select
Loop
Application.ScreenUpdating = True
Application.DisplayAlerts = True
Application.Calculation = xlCalculationAutomatic
End Sub


I fthis doesn't work or if you want to talk email me at
drat@mediaone.net
:)
Ratman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top