LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Run Time Error 6028: Help?


Option Explicit goes above ALL code, not at the top of each sub.
It is only entered once.
Jim Cone




"Dan the Man"
wrote in message
So to be sure I have this correct (with respect to Option Explicit and
changing "cell" to "cells") is below the accurate adjustment to make with
respect to the 2 fucntion buttons on my Userform that are triggering the
Runtime 6028 Error? I will be very happy if this solves the problem and
allows the code to work!
__________________________________________________
Private Sub CommandButton3_Click()
Option Explicit
nrows = nrows + 1
mytable.Cells(nrows + 1, 1).Range.Text = TextBox1.Text
mytable.Cells(nrows + 1, 2) = Now()
incr = 1
nr = nrows
End Sub
__________________________________________________
Private Sub CommandButton4_Click()
Option Explicit
nrows = nr
mytable.Cells(nrows + 1, 1).Range.Text = TextBox1.Text
mytable.Cells(nrows + 1, 2) = Now()
End Sub
__________________________________________________ _____________________

 
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
run time error 1004 general odbc error excel 2003 vba Mentos Excel Programming 5 January 24th 11 02:56 PM
What is Run Time Error 6028? Dan the Man[_2_] Excel Worksheet Functions 3 September 17th 07 12:54 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error rdavis7408 Excel Programming 1 August 25th 04 03:54 AM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM


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