LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Excel 2007 Forms

Jim,

This is a 2003 .xls file that was resaved in the native 2007 .xlsm format.
All the macros work fine the problem only occurs in trying to access the
forms. I have checked the properties of the form and Microsoft did not
change the name during the conversion (which I have found they have been
known to do at times). I have not tried to recreate this program from
scratch in the native format but I have tried creating a new duplicate form
but it yields the same result.

Here is the code that gets executed when you double click a cell in the
speadsheet to initate the payroll part of the code.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel
As Boolean)


' Run Payroll Module

MainPayrollModule
End

End Sub


Sub MainPayrollModule()
'
'
' *********** Create the bi-weekly payroll **************
'
' MsgBox "Starting MainModule/MainPayrollModule."
frmPayrollForm.Show 'load, show the dialog box and process




--
Brad Wylie


"Jim Rech" wrote:

Odd you're having these problems. I have found absolutely no difference in
how userforms work in Excel 2007. If you want to send me a simple example
the works in 2003 and bombs in 2007 I'd like to see it.

--
Jim
"Brad Wylie" wrote in message
...
It appears Excel 2003 and Excel 2007 put the user forms in a separate
module
from the modules that excute code in the workbook.
In Excel 2003 I had code that referenced the form via UserForm.show in the
main startup module . This code generates an error in Excel 2007. Also
calls to subroutines in the code behind the form from the other modules
generates and undefined error. How does Excel 2007 link these two
modules
now so that one can reference items in them.

Thanks
Brad Wylie




 
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
Forms Toolbar in Excel 2007 Gary Excel Discussion (Misc queries) 2 September 27th 12 08:04 PM
Where are the forms tools in Excel 2007? CCRich Excel Discussion (Misc queries) 11 February 5th 07 03:25 PM
Creating Forms with Excel 2007 Mishu New Users to Excel 2 January 2nd 07 10:20 PM
Excel 2007 and creating Forms Mishu Excel Discussion (Misc queries) 1 January 2nd 07 07:21 PM
Forms in Excel 2007 Ben Enfield Excel Worksheet Functions 2 June 2nd 06 11:11 AM


All times are GMT +1. The time now is 10:19 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"