Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Address Property

I'm writing a subroutine to find information on one sheet based on another
sheet. Here's what I have so far

With oSheetlst.Range("a1:a1500")
Set c = .Find(CLO$, LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address


It will return an Address of $A(row) and this is the correct address for the
search, what I want to do is increase the firstAddress (firstAddress =
c.Address) to $B(row) so the I can update the records on the second sheet.

Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Address Property

You just got your name added to the Christmas card list....Thanks

"Bob Phillips" wrote:

Do you mean

c.Offset(0,1).Address

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike" wrote in message
...
I'm writing a subroutine to find information on one sheet based on another
sheet. Here's what I have so far

With oSheetlst.Range("a1:a1500")
Set c = .Find(CLO$, LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address


It will return an Address of $A(row) and this is the correct address for

the
search, what I want to do is increase the firstAddress (firstAddress =
c.Address) to $B(row) so the I can update the records on the second sheet.

Mike





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Address Property

Do you mean

c.Offset(0,1).Address

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike" wrote in message
...
I'm writing a subroutine to find information on one sheet based on another
sheet. Here's what I have so far

With oSheetlst.Range("a1:a1500")
Set c = .Find(CLO$, LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address


It will return an Address of $A(row) and this is the correct address for

the
search, what I want to do is increase the firstAddress (firstAddress =
c.Address) to $B(row) so the I can update the records on the second sheet.

Mike




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
Runtime Error 380 – Could not set the list property. Invalid property value BernzG[_16_] Excel Programming 2 August 21st 05 10:10 PM
Help with Address property in nested loops Jill E Excel Programming 12 January 27th 05 02:55 PM
Runtime error 380: Could not set the List property. invalid property value of listbox jasgrand Excel Programming 0 October 6th 04 09:28 PM
Is there a Filename property in PrintOut property Christian[_6_] Excel Programming 4 September 3rd 04 10:12 PM


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