Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Skip blank cells; Run-time error 380


have a userform with several comboboxes. When I hit the "next" button,
it goes to the next row down, but if that is empty, then I'll get an
error of:

Runtime error '380'
Could not set the Value property. Invalid property value.

The combobox MatchRequired property is set to False.

Here's the basics of my code. I will be more than willing to email the
file. It's too large to post.


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

Private Sub LoadRow()

txtTapeNumber.Text = ActiveCell.Value
txtCode.Text = ActiveCell.Offset(0, 1)
cboChannel.Value = ActiveCell.Offset(0, 2) <--error here
cboBrand.Value = ActiveCell.Offset(0, 3)
cboFormat.Value = ActiveCell.Offset(0, 4)
cboLength.Value = ActiveCell.Offset(0, 5)
cboCategory.Value = ActiveCell.Offset(0, 6)
cboVersion.Value = ActiveCell.Offset(0, 7)
txtTapeTitle.Text = ActiveCell.Offset(0, 10)
txtKeywords.Text = ActiveCell.Offset(0, 11)
etc...(more txt boxes)

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


Here is my next button code...


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

Private Sub cmdNext_Click()

' Save form contents before changing rows:
SaveRow

' Increment row number:
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If

' load info from sheet1 into userform
LoadRow

' Set focus to Name textbox:
txtTapeNumber.SetFocus

End Sub

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


this is the last major piece of the puzzle to get this working. If I
want to add a new line, that's no problem, it's just on hitting
"Next".


Thanks for reading and for the help!


--
jbpyron
------------------------------------------------------------------------
jbpyron's Profile: http://www.excelforum.com/member.php...o&userid=33509
View this thread: http://www.excelforum.com/showthread...hreadid=533034

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
Skip Blank Cells While Copying A List shruthitulsi Excel Worksheet Functions 0 December 11th 10 04:52 AM
how do I skip blank cells when writing formulas KatB Excel Worksheet Functions 1 July 11th 06 09:53 PM
Skip blank cells in diagrams hlp Charts and Charting in Excel 9 February 24th 06 02:32 PM
How do I skip blank cells when copying over a range of cells? tawells Excel Discussion (Misc queries) 2 June 7th 05 09:36 PM
how to skip the blank cells nayeemoddin Excel Discussion (Misc queries) 1 December 6th 04 07:07 AM


All times are GMT +1. The time now is 04:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"