Need help on getting the detailed information of a cell.

Ams_A

New Member
Joined
May 8, 2013
Messages
14
Hello,

Can someone please help here.

I need to get the actual details (i.e. formula of a cell) instead of the result.

For e.g.

If I put in Cell A1 =45+55, then excel displays it as 100. I want the message box using VBA to give the output as 45+55 instead of the number 100.

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
If I put in Cell A1 =45+55, then excel displays it as 100. I want the message box using VBA to give the output as 45+55 instead of the number 100.

Thanks in advance.


The Formula property of the Range object will give you this eg

Code:
MsgBox   Sheets("MySheet").Range("A1").Formula
 
Upvote 0
The Formula property of the Range object will give you this eg

Code:
MsgBox   Sheets("MySheet").Range("A1").Formula


Hi Firefly2012,

That was the solution I was looking for.

Perfect. Thank You very much. :):):)

Sorry, I am new to this forum. Do I have to close to anything to mark this thread as solved or something. Also is there a rating or something that I can give to you on helping me on this. Kindly advise. Thanks.
 
Last edited:
Upvote 0
Sorry, I am new to this forum. Do I have to close to anything to mark this thread as solved or something. Also is there a rating or something that I can give to you on helping me on this. Kindly advise. Thanks.

You don't need to do anything (threads don't get marked as "SOLVED" here as they do at certain other forums). Your kind words are thanks enough :)
 
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,925
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top