Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Method 'Rows' Of Object '_Global Failed

Hi i've never posted here and dont know a huge amount of VB but would
appreciate any help you can give me.

I have a spread sheet set up with a userform that when the user hits
the ENTER button this macro puts the data in a worksheet.

It works fine in excel no problems. However i've noticed when the
complete workbook is open Internet Explorer the enter button gets this
error

Method 'Rows' Of Object '_Global Failed

The code behind the button is

Private Sub CommandButton3_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Sheet2

'find first empty row in database
iRow = ws.Cells(Rows.Count, 2) _
.End(xlUp).Offset(1, 0).Row

and debugging suggests that this is the problem =
ws.Cells(Rows.Count, 2) _

any suggestions, its not very important just strange that this is the
only macro in a workbook of hundreds that doesnt work when open in
Explorer

Reply
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
method Worksheets of object _Global failed ndalal Excel Programming 1 May 2nd 06 04:08 PM
Method 'Range' of object '_Global' failed fundoo_pc Excel Programming 2 January 17th 06 12:05 AM
What does XLS VB Method 'Range of object' _Global failed mean? DCMKGG Excel Programming 2 February 25th 05 03:06 PM
Method 'Cells' of object '_Global' failed Huyeote[_10_] Excel Programming 0 October 19th 04 07:29 AM
Method 'Range' of object '_Global' failed Mohanasundaram[_2_] Excel Programming 1 August 25th 03 01:43 PM


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