LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default Hidden VBA Code

Hi there,

BACKGROUND - A while back, I was trying to change my "Comma Style" button to
format cell(s) in the #,##0 format rather than the built-in #,##0.00_)
format. I was trying to change this button via a Macro in my Book.xltm file,
so when Excel opened, the button would act as I want.

As a test to see if I was putting the Macro in the correct place and to see
if it was working when I opened Excel, I put a Msgbox in the code to give me
the "Hi" message. It didn't end up working correctly and I left it alone.
There was a Comma button on my Add-Ins menu, and it would display the "Hi"
message when pushed, but the cell format wouldn't change. I have since
right-clicked on that Comma button and deleted it. (I have also gotten the
comma thing to work the way I want, so I don't need help with that.)

CURRENT - I wrote some code last week and was testing it before sending the
spreadsheet out for my contact to work on it. When I push a button that I
have entered on the spreadsheet (HOME tab), I want to record the user's
entered data on a second tab (HOME2). If HOME2 is not hidden, the code works
as intended. However, when I hide HOME2, my code doesn't run past the
Worksheets("HOME2").Select
line, but, instead, I get the "Hi" message from that old code I had. I have
realized that I need to change that line to
With Worksheets("Home2").

My problem is that I cannot find that old code ANYwhere to be able to delete
it. I had my co-worker test the spreadsheet on his computer and he also got
the "Hi" message, which means when I e-mail it to my contact for user input,
they will get the message also. Obviously, I can't have that. Can anyone
help me find that old code?
--
TIA, Brad E.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
code failing in hidden rows RobN[_2_] Excel Discussion (Misc queries) 16 January 16th 08 02:19 AM
Rows hidden by Autofilter vs hidden by changing the Hidden property LEO@KCC Excel Programming 4 September 11th 07 10:14 AM
Formula or Code to keep Hidden Rows Hidden Carol Excel Worksheet Functions 6 May 1st 07 11:45 PM
Running Code on Hidden Worksheet Steve C Excel Programming 2 February 13th 07 06:52 PM
Code that keeps creating a toolbar - where might that code be hidden? Keith Excel Programming 4 February 12th 07 08:33 PM


All times are GMT +1. The time now is 11:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"