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: 1
Default Newbie VBA Problem


I stink at Excel programming.

Anyways, I have this button which removes employees. And when clicked,
it will display this remove an employee window. Very simple, the user
types in the employee name to remove and then clicks remove and then a
confirmation screen will appear. Only problem is the confirmation
screen won't have access to the employee name which is pretty obvious.
So I would want to send the employee name to that screen, but no matter
what code I try I can't get it to work! Grrr

Here is the code I have:

This is the remove employee menu.

Code:
--------------------

Option Explicit
-----------------

Private Sub removeEmployeeRecord_Click()
confirmRemovalEmployee(employeeName.Text).Show
End Sub

--------------------


The confirmation menu to remove code

Code:
--------------------

Option Explicit
Private Sub cancel_Click()

Unload Me

End Sub

Private Sub confirm_Click(employeeName as String)

Worksheets(employeeName).Delete

End Sub

--------------------


Can someone help me here? And does anyone know of some really good VBA
Excel tutorials? Please do list them.

Thank You.


--
FCC
------------------------------------------------------------------------
FCC's Profile: http://www.excelforum.com/member.php...o&userid=35888
View this thread: http://www.excelforum.com/showthread...hreadid=557162

 
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
Newbie TextBox problem - Please help. krayten Excel Programming 1 February 7th 06 03:35 PM
Newbie problem :( Liosan Excel Programming 6 August 15th 05 02:16 PM
Newbie Problem BuddyB Excel Programming 2 February 16th 05 04:45 AM
newbie spreadsheet problem stevo Excel Programming 1 June 17th 04 03:54 PM
newbie userform problem Kevin Excel Programming 1 August 5th 03 12:25 AM


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