• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

Running Excel 2007 in Server 2008

I have developed an application that runs well on my Local XP machine running Office 2007.  We want to move this application to an application server, so that multiple users can access it.  We also need to access it through Citrix as we have a number of MAC users, but that issue is for later.

Right now, in just trying to compile the code in 2008, it errors out on statements that have [variable]'s around them.  The error mostly seen is: Can't find the Project or Library.  There were a couple of MISSING References, but I added those in.  To further check out the issue, those MISSING references were unchecked in the XP machine, restarted,  recompiled, and it seems they weren't needed as it compiled with no errors.

Server 2008 is 64 bit, but the application is being run on Excel from the x86 folder in Program Files.

What other areas need to be checked so that, the Evaluate [...]'s and other functions such as:

Private Function TransparentUserForm(frm As UserForm, Level As Byte) As Boolean

will work properly?
0
Cook09
Asked:
Cook09
  • 5
  • 3
1 Solution
 
Rory ArchibaldCommented:
What references do you have checked? Are they now all ok on the Server 2008 machine?
If so, can you give a specific example of a line that causes an error and what the message is? ( generally it's better to specify Evaluate than use the [...] notation)
0
 
Cook09Author Commented:
Rory,
Let me get back to you in a minute.  I just remembered reading something that if errors occurr and there were missing libraries, just uncheck those libraries and see if it still has the same issues.  Two files that were missing dealt with SharePoint, so I unchecked those, and some of the uncompiled errors cleared up.  I'm now checking on some of the others, and re-ordering the priority of certain libraries to see if that also makes a difference.

If this is indeed the issue, then am I to understand that if there are issues with a library file that is higher up in the priority list, it may halt with an error before proceeding down the rest of the list?

Cheers,
Ron
0
 
Rory ArchibaldCommented:
If you do not fully qualify a function or Object, for example, that appears in two object libraries, then the order of the references does matter. Say you have a reference to Word set in Excel, there are Range objects in both libraries, so it is better to specify Word.Range rather than Excel.Range for example.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Cook09Author Commented:
Rorya,

That must be what could have been occurring.  Right now, everything seems to be working fine.  But, I do have an "off-the-wall" question, which I can ask separately if you wish.

The way I had my color scheme in XP, the Hidden color was 4210752 (I don't know how I found that).  In moving to Server 2008, the hidden rows (cells) are of a different color.  But, since the cells are hidden they can't be selected to find out the color number.  Do you know the best way to do this?

Ron
0
 
Rory ArchibaldCommented:
I have no idea what you mean by the Hidden colour?
0
 
Cook09Author Commented:
When all of the rows from 'X' to  the very Last Row are hidden, they take on a specific color.  In using that same color for the area around a Table or, well, the visible rows, it produces a pleasant 3D effect at the intersection of the visible rows and hidden rows. Microsoft shadows the last visible row, to give it that appearance. I'd like to duplicate that in Server 2008.  Now, the issue is finding the color number.

Ron
0
 
Cook09Author Commented:
Rorya,

I think I found it.  By using the macro recorder, and by chance one of the rows in my Table looking very similar to the Hidden color, I just did a paste special formats to a visible cell and it gave me the number.  If it's not exact, it's still close enough for me.  BTW it's color  # 14211288.

Ron
0
 
Cook09Author Commented:
While your answer wasn't explicit, yet some of the questions you asked, and the explanation of the Reference Priority helped me to figure out what the issue was for this problem.  Often times learning is best done through the Socratic method.

Ron
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now