Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / September 2007



Tip: Looking for answers? Try searching our database.

Setting a range from a refedit control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne - 05 Sep 2007 09:26 GMT
Hello,

On a form I have a refedit control wich is then used to set a range variable
for further processing:

  Dim s As String
  Dim rng as Range
  s = refCtrl.Value
  On Error Resume Next
     Set rng = Range(s)
  If Err.Number <> 0 Then
  ...

This works fine as long as the range selected using the refedit control
consists of one area. However, it fails on multiple-area ranges. Is there a
simple way of setting the range in this case without having to write an
extensive procedure in which the string s is analyzed and the areas are added
to the range object?

TIA, Arne
Arne - 05 Sep 2007 14:18 GMT
Sorry, posted in the wrong place.

> Hello,
>
[quoted text clipped - 16 lines]
>
> TIA, Arne
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.