Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Searching Problem


Private Sub cmdOK_click()
The following code does exactly what is is supposed to do. It takes th
input from the Userform and inserts it into an Empty ActiveCell.

activeworkbook.sheets(\"rid sheet\").activate
range(\"a2\").select

do
if isempty(activecell) = false then

'***i think i need to test here to see if the activecell
txtdnum.value***
'***the cell is advanced here***
activecell.offset(1, 0).select

end if
loop until isempty(activecell) = true

'***if the activecell does = txtdnum.value, i don't want to insert 4
'***following vaules. at this point, if the activecell = txtdnum.value
i want
'***the code to reset the activecell back to \"a2\" and be ready fo
new data.

activecell.value = txtdnum.value
activecell.offset(0, 1) = cbodescription.value
activecell.offset(0, 2) = txtcount.value
activecell.offset(0, 3) = txtserialnum.value
range(\"a2\").select

end su

--
AndrewA
-----------------------------------------------------------------------
AndrewAK's Profile: http://www.excelforum.com/member.php...fo&userid=1554
View this thread: http://www.excelforum.com/showthread.php?threadid=27187

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
Problem searching cell text tommcbrny Excel Discussion (Misc queries) 3 May 15th 08 05:00 PM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
Column searching problem mikeyts New Users to Excel 2 December 18th 04 09:35 PM
Searching Problem AndrewAK[_7_] Excel Programming 0 October 24th 04 10:24 PM
Searching Problem AndrewAK[_5_] Excel Programming 1 October 24th 04 11:27 AM


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