Getting Value in Excel Cell instead of Formula

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
winstein
Pro Scripter
Posts: 84
Joined: Mon Nov 26, 2012 3:44 pm

Getting Value in Excel Cell instead of Formula

Post by winstein » Mon Mar 21, 2016 7:03 am

My colleague is facing this problem. In Excel, certain cells might have formulas, which will in turn display the true value. How do you make it so that Macro Scheduler retrieves the cell value instead of the formula?

Thanks for reading.
PPQ

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Getting Value in Excel Cell instead of Formula

Post by Marcus Tettmar » Tue Mar 22, 2016 8:58 am

Hi,

What method are you using to retrieve data from Excel? Using the built in XLGetCell function the value is returned, not the formula, so I guess you must be using some other method? Maybe share your code.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

winstein
Pro Scripter
Posts: 84
Joined: Mon Nov 26, 2012 3:44 pm

Re: Getting Value in Excel Cell instead of Formula

Post by winstein » Wed Mar 23, 2016 4:21 am

According to my colleague, the cell returns the value instead of the formula. Meaning, I can't quite show you the code.

I am not sure why it happened, but if I were to speculate, the cell might be highlighted beforehand, showing the formula instead of the value.
PPQ

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts