Run-time error '1004
Application-defined or object-defined error
This line does not work
If DatabaseSelected.Cells(db9x, 1) = AssetList.Cells(asset_row, 1) Then
Could you please help me
Please Login or Register to view this content.
Run-time error '1004
Application-defined or object-defined error
This line does not work
If DatabaseSelected.Cells(db9x, 1) = AssetList.Cells(asset_row, 1) Then
Could you please help me
Please Login or Register to view this content.
Last edited by need; 11-01-2010 at 10:19 AM.
Welcome to the forum,
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Ok i found it
DatabaseSelected.Cells(db9x, 1) - should be
DatabaseSelected.Cells(db9x_row, 1)
Using Option Explicit would avoid that sort of problem:
http://www.cpearson.com/excel/DeclaringVariables.aspx
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
Need, the title change did not really result in a better title. Before you post your next question, please make sure you understand the forum rules.
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks