Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to have a macro that searches the range Say A10:A15 if
there is a value in A10 then goto B10 do what I have to do in a userform then click ok, then it goes to see if there is a value in the next row |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
for each cell in range("A10:A15")
if isempty(cell) then cell.offset(0,1).Select userform1.show end if Next -- Regards, Tom Ogilvy "damorrison" wrote in message oups.com... I would like to have a macro that searches the range Say A10:A15 if there is a value in A10 then goto B10 do what I have to do in a userform then click ok, then it goes to see if there is a value in the next row |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks alot, what is the opposite of
IsEmpty right now the macro stops at the first empty row I need it to stop at the next row with a value in the A10:A15 range |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Not IsEmpty
"damorrison" wrote in message oups.com: Thanks alot, what is the opposite of IsEmpty right now the macro stops at the first empty row I need it to stop at the next row with a value in the A10:A15 range |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This what I am trying to do
For Each cell In Range("A10:A15") If Not IsEmpty(cell) Then cell.Offset(0, 1).Select Application.SendKeys "%{down}" End If Next when a selection is made in colmn B the userform shows |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
now it stops at the last cell
|
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
something like this?
Dim r As Integer r = ActiveCell.Row + 1 Do While (r <= 15) If Not IsEmpty(Range("A" & r)) Then Range("B" & r).Select Application.SendKeys "%{down}" Exit Do End If r = r + 1 Loop The loop stops at row 15 |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Paul,
Yes that's it, Thanks alot |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i build a search table in excel | Excel Worksheet Functions | |||
build a search tool in excel | Excel Discussion (Misc queries) | |||
Search open sheets in workbook and insert into open sheet | Excel Discussion (Misc queries) | |||
Search Entire Workbook | Excel Discussion (Misc queries) | |||
FAQ Spreadsheet with search function | Excel Discussion (Misc queries) |