LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 192
Default Insert Function next to formula bar gives Run-time Error '50290'

Greetings,

Background:
We are using Office 2007 Pro Plus on XP SP2. We have a basic XLSM file with
the following Macro code:
Sub auto_open()
Application.OnEntry = "ChangeStatus"
End Sub

Sub ChangeStatus()
Application.StatusBar = "Changing formula" & Now
End Sub

When opening the file, we clicked Options -- Enable macros.

Problem:
When doing an insert function from the ribbon (Formulas tab -- Insert
function button on the far left), select SUM, click OK, enter 1 for number 1,
enter 2 for number 2, enter 3 for number 3, then click OK. The formula will
insert into the cell and the sum of the numbers, 6, will appear in that cell.

Now if you do the same above steps as you did, but this time using the
insert function button next to the formula bar, with the same macros enabled,
entering the same numbers, you will receive a MS VB Run-time Error '50290'.
Clicking Debug brings us to the line, Application.StatusBar = "Changing
formula" & Now, which does not have any issue since it worked with the insert
function button on the ribbon.

Can anyone help with this issue?

--
Nick
 
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
Worksheet function match - run time error Sajit Excel Worksheet Functions 3 July 8th 07 10:30 PM
Formula/Function to insert month by name in a cell mjdntn Excel Worksheet Functions 2 September 26th 06 07:44 PM
Displaying time - Error in formula (I think?) El Bee Excel Worksheet Functions 4 April 11th 06 05:55 PM
Replace "insert function" with "edit formula" button in fourmula b 13brian Excel Discussion (Misc queries) 0 August 24th 05 08:49 PM
Excel VB Run-time error '50290' Bruce Blackman Excel Worksheet Functions 0 May 5th 05 02:26 PM


All times are GMT +1. The time now is 11:08 PM.

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"