Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Application defined or object defined error

Posted on 2014-09-17
2
Medium Priority
?
105 Views
Last Modified: 2014-09-17
I have some VBA Formula -  

.Range("AO2").Formula = "=[Controls FI.xlsm]Control_Sheet!$K$5"

It picks up a date from K5 the file Controls FI

I am getting "Application defined or object defined error" when it attempts to step through the above line

Can anyone suggest why this is?

Many thanks
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 2000 total points
ID: 40327678
Hi,

issue here is the space in the file name of the excel file from where you are reading the value.

Corrected formula is : .Range("AO2").Formula = "='[Controls FI.xlsm]Control_Sheet'!$K$5"

Notice the
'
 which i added...
0
 

Author Closing Comment

by:Seamus2626
ID: 40327923
Thanks!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question