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


Set r = Union([a2], [a4], [a9])
r.FormulaR1C1 = "=r[-1]c"
r.Value = r.Value

i want to chang result value of function of non continuous cells to
value....

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default strange range access

Sub Tester()
Dim a As Range, r As Range

Set r = Union([a2], [a4], [a9:b9])

For Each a In r.Areas
a.Value = a.Offset(-1, 0).Value
Next a
End Sub

Tim


"tom taol" wrote in message
...

Set r = Union([a2], [a4], [a9])
r.FormulaR1C1 = "=r[-1]c"
r.Value = r.Value

i want to chang result value of function of non continuous cells to
value....

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default strange range access


Using of for loop, no, no...
I want to do once. express access

*** Sent via Developersdex http://www.developersdex.com ***
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
Strange New Line text when importing from Access 97 Mattyb Links and Linking in Excel 1 May 10th 09 10:13 PM
Help understanding truely strange error involving access query and filling cells puff Excel Programming 1 March 1st 06 08:37 PM
Strange VBA speed issue based on whether overwritten file originallyexisted or not (?I think?). Excel from Access VBA Dave Peterson Excel Programming 2 September 14th 05 01:44 AM
Strange VBA speed issue based on whether overwritten file originally existed or not (?I think?). Excel from Access VBA A C Excel Programming 0 September 13th 05 11:51 PM
Strange or error : For each cl in Selection 'cl as range Jean-Yves[_2_] Excel Programming 0 March 1st 04 02:01 PM


All times are GMT +1. The time now is 10:53 PM.

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"