Technology Get the latest on technology, electronics and software…

Excel Macro Problem

Old May 22, 2008 | 03:07 PM
  #1  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Question Excel Macro Problem




when a button on the spreadsheet is pressed, i get what's shown above. i sent the same spreadsheet to my coworkers and the buttons work fine.

i have the same things installed and same settings as my coworker.

i did not create this xls, it was taken from a template db.

thoughts?
Reply
Old May 23, 2008 | 08:16 AM
  #2  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Any ideas?

I repaired Office, updated video drivers, and downloaded the latest hotfixes and it is still doing it.
Reply
Old May 23, 2008 | 08:24 AM
  #3  
enigmaos's Avatar
Too Fast TOO FURIOUS
iTrader: (4)
 
Joined: Sep 2006
Posts: 6,571
Likes: 2
From: Long Island, NY
have you tried removing office and re-installing it?
Reply
Old May 23, 2008 | 08:25 AM
  #4  
hornyleprechaun's Avatar
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
I have no idea. Do you know how to work with Macros? Is the button directed toward the correct function in the macro?
Reply
Old May 23, 2008 | 08:34 AM
  #5  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by enigmaos
have you tried removing office and re-installing it?

i did the repair from Add/Remove Programs


uninstalling would require new license.
Reply
Old May 23, 2008 | 08:43 AM
  #6  
Shalooby's Avatar
Secret Agent
 
Joined: Aug 2006
Posts: 4,298
Likes: 31
From: N Va
It's personal. It just doesn't like you.





I really don't know. Sorry I can't be much help, but it looks like it's trying to open an object or perform a function that is not on your system. Find out what it's pointing to on a machine that it does work on then search for that object on yours.

There's nothing wrong with Office or Excel. It's trying to call something that doesn't exist. At least not on your system anyway.

Last edited by Shalooby; May 23, 2008 at 08:45 AM.
Reply
Old May 23, 2008 | 08:45 AM
  #7  
chill_dog's Avatar
Oderint dum metuant.
 
Joined: Mar 2005
Posts: 12,496
Likes: 534
From: Lake Wylie
^Yeah, that's what I was thinking...what is clicking the object button supposed to cause to happen?
Reply
Old May 23, 2008 | 08:46 AM
  #8  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI



this is what it should look like when a button is pushed. it's not really a function, just a help statement.
not sure what you mean by searching for the object.


each button has a different statement.
Reply
Old May 23, 2008 | 08:52 AM
  #9  
chill_dog's Avatar
Oderint dum metuant.
 
Joined: Mar 2005
Posts: 12,496
Likes: 534
From: Lake Wylie
I'd guess something's wrong the with actual vb code because that's about as simple of a command as you can get (push button, window pops up). Now why it works for some people and not you, I have no idea. Maybe it's as Shalooby was alluding to: that the object, in this case the text in the box, is somewhere else? I would think it's in the code, but I guess it's possible that it's pulling it from an outside source. Got a screen shot of the code for the button?
Reply
Old May 23, 2008 | 08:55 AM
  #10  
Rock2534's Avatar
Drifting
 
Joined: Dec 2002
Posts: 2,619
Likes: 15
From: Lehigh Valley, PA
Are you getting the macro warning when you open the file, I think the default excel security setting is to restrict them. Look at the actual macro setup "step into" button, that will show the code behind the macro, it might be pointing to a cell that has the text that is supposed to appear.
Reply
Old May 23, 2008 | 08:59 AM
  #11  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Reply
Old May 23, 2008 | 09:00 AM
  #12  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by Rock2534
Are you getting the macro warning when you open the file, I think the default excel security setting is to restrict them. Look at the actual macro setup "step into" button, that will show the code behind the macro, it might be pointing to a cell that has the text that is supposed to appear.

i get the warning and select "enable macros"
i can't change the settings as work has them defaulted to medium
Reply
Old May 23, 2008 | 09:14 AM
  #13  
chill_dog's Avatar
Oderint dum metuant.
 
Joined: Mar 2005
Posts: 12,496
Likes: 534
From: Lake Wylie
You need to determine where those objects are (ex. GuidanceFA3).
Reply
Old May 23, 2008 | 09:45 AM
  #14  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Guidance FA3 is just the name of the button, no?

find the objects--what the buttons are referencing?
Reply
Old May 23, 2008 | 09:58 AM
  #15  
chill_dog's Avatar
Oderint dum metuant.
 
Joined: Mar 2005
Posts: 12,496
Likes: 534
From: Lake Wylie
No, the button is CommandButtonFA3; when you click on it, it's supposed to show GuidanceFA3, which is something that's somewhere else. Looking at your screenshot, I'd guess it's one of the forms in the Forms folder.
Reply
Old May 23, 2008 | 10:08 AM
  #16  
phile's Avatar
Pinky all stinky
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jul 2003
Posts: 20,678
Likes: 192
LOL, I have an excel question too: does any one know how I can add the $ sign in front of numbers in every single column? like the formula or whatever code it is. cause I don't want to manually enter it for 1000+ cells.
Reply
Old May 23, 2008 | 10:17 AM
  #17  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
compared the code from the forms folder with the folder on the working computer, and all is identical.

i compared the security setting in my excel w/ the working excel and they are the same. the only thing i can think of is, there must be something on my computer blocking the vbscript.
Reply
Old May 23, 2008 | 10:25 AM
  #18  
Rock2534's Avatar
Drifting
 
Joined: Dec 2002
Posts: 2,619
Likes: 15
From: Lehigh Valley, PA
Originally Posted by phile
LOL, I have an excel question too: does any one know how I can add the $ sign in front of numbers in every single column? like the formula or whatever code it is. cause I don't want to manually enter it for 1000+ cells.
Highlight all, right click, format as currency.
Reply
Old May 23, 2008 | 11:28 AM
  #19  
phile's Avatar
Pinky all stinky
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jul 2003
Posts: 20,678
Likes: 192
Originally Posted by Rock2534
Highlight all, right click, format as currency.
LOL, awesome. thanks.
Reply
Old May 23, 2008 | 12:01 PM
  #20  
Kikaida's Avatar
Burning Brakes
 
Joined: Jun 2006
Posts: 1,204
Likes: 0
From: Hawaii
Might be a video card driver problem.

Try rebooting first.

If that doesn't solve your problem, try updating the driver and try again.
Reply
Old May 23, 2008 | 12:02 PM
  #21  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
as a test, you could try logging into your computer under a different profile/or create a new profile and see if it still happens
Reply
Old May 23, 2008 | 12:25 PM
  #22  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by Kikaida
Might be a video card driver problem.

Try rebooting first.

If that doesn't solve your problem, try updating the driver and try again.

post #2


Originally Posted by rza49311
as a test, you could try logging into your computer under a different profile/or create a new profile and see if it still happens

i tried safe mode, diagnostic start up, and selective start up (disabled everything). i know that's different than what you suggest.
the PCs are imaged w/ one profile and it's a PITA to jump thru the hoops of getting another one put on the computer.
Reply
Old May 23, 2008 | 12:33 PM
  #23  
Shalooby's Avatar
Secret Agent
 
Joined: Aug 2006
Posts: 4,298
Likes: 31
From: N Va
Originally Posted by sho_nuff1997
compared the code from the forms folder with the folder on the working computer, and all is identical.

i compared the security setting in my excel w/ the working excel and they are the same. the only thing i can think of is, there must be something on my computer blocking the vbscript.
The code on both computers is going to be the same. What you need to look for is the object or function that the code is calling, then see if that object or function is present on your system.

The code is working fine. You press a button and it is attempting to do something by calling something else. It is the "something else" that is missing which is the problem.
Reply
Old May 23, 2008 | 01:30 PM
  #24  
Kikaida's Avatar
Burning Brakes
 
Joined: Jun 2006
Posts: 1,204
Likes: 0
From: Hawaii
Call Level 3?
Reply
Old May 23, 2008 | 01:58 PM
  #25  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
Originally Posted by sho_nuff1997
post #2





i tried safe mode, diagnostic start up, and selective start up (disabled everything). i know that's different than what you suggest.
the PCs are imaged w/ one profile and it's a PITA to jump thru the hoops of getting another one put on the computer.
do you know the admin password? all xp machines have a default profile typically and the administrator account . so if you have the admin password, try the administrator account.
Reply
Old May 23, 2008 | 02:31 PM
  #26  
Anachostic's Avatar
Safety Car
 
Joined: Jul 2007
Posts: 4,845
Likes: 145
Originally Posted by sho_nuff1997
In each of the click methods before GuidanceFA(number).Show, where (number) is one of the help forms, add this line:

guidanceFA(number).BackColor = &HFFFFFF

That should change the background color to white. It might be using a system color that you have set to black on your system, but other computers don't.
Reply
Old May 23, 2008 | 03:32 PM
  #27  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by Anachostic
In each of the click methods before GuidanceFA(number).Show, where (number) is one of the help forms, add this line:

guidanceFA(number).BackColor = &HFFFFFF

That should change the background color to white. It might be using a system color that you have set to black on your system, but other computers don't.

Still does the same thing.



Originally Posted by Kikaida
Call Level 3?

escalated.....


i'll update if they have a fix.

thanks for all the help!
Reply
Old May 23, 2008 | 03:50 PM
  #28  
Anachostic's Avatar
Safety Car
 
Joined: Jul 2007
Posts: 4,845
Likes: 145
If it's not confidential or if it's just a template, you can send it my way and I'll check out the VBA code.
Reply
Old May 23, 2008 | 06:59 PM
  #29  
Kikaida's Avatar
Burning Brakes
 
Joined: Jun 2006
Posts: 1,204
Likes: 0
From: Hawaii
Try this:

Right click on your desktop background (not in Excel) and select "Properties" to get into the "Display Properties".
Click on "Appearance".
Under "Color Scheme", select "Default (blue)".
Click "OK".
Reply
Old May 23, 2008 | 09:19 PM
  #30  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by Kikaida
Try this:

Right click on your desktop background (not in Excel) and select "Properties" to get into the "Display Properties".
Click on "Appearance".
Under "Color Scheme", select "Default (blue)".
Click "OK".
most excellent. that worked!!!!
i never would have guessed that.
looking back at this thread, i see how you came up with that.

i wish i could remember that saying, something about the simplest answer.

i'll have to wait until tuesday to see if the people i escalated to can come up w/ an answer.

muchas gracias!
vielen dank!
Reply
Old May 23, 2008 | 10:05 PM
  #31  
Kikaida's Avatar
Burning Brakes
 
Joined: Jun 2006
Posts: 1,204
Likes: 0
From: Hawaii


Glad it worked!

Yup, Anachostic's post made me think of the solution!
Reply
Old May 23, 2008 | 10:24 PM
  #32  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
ya and the screenshot i posted that worked was blue color scheme and the one that didnt work were silver.

Last edited by sho_nuff1997; May 23, 2008 at 10:27 PM.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
SidhuSaaB
3G TL Problems & Fixes
18
May 30, 2020 12:40 AM
DementiaPhuro
3G TL Problems & Fixes
1
Sep 29, 2015 05:31 PM
Matthew Purpura
1G CL (1997-1999)
3
Sep 25, 2015 06:10 PM
95oRANGEcRUSH
Car Talk
35
Sep 25, 2015 12:50 PM
rboller
3G TL Audio, Bluetooth, Electronics & Navigation
0
Sep 23, 2015 02:49 PM



All times are GMT -5. The time now is 06:58 PM.