Solved

Running Excel 2007 in Server 2008

Posted on 2011-02-16
8
233 Views
Last Modified: 2012-05-11
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
Comment
Question by:Cook09
  • 5
  • 3
8 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34921511
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
 

Author Comment

by:Cook09
ID: 34921610
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
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 34921834
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
 

Author Comment

by:Cook09
ID: 34921898
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34921924
I have no idea what you mean by the Hidden colour?
0
 

Author Comment

by:Cook09
ID: 34921983
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
 

Author Comment

by:Cook09
ID: 34922070
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
 

Author Closing Comment

by:Cook09
ID: 34926670
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strangeā€¦
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now