Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2006

Tip: Looking for answers? Try searching our database.

Select range in VBA through variabel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mr. Smith - 27 Sep 2006 10:05 GMT
Hi I try this code, but I will not work.

sub selectnamedrange(fblock as Integer)
   dim frow_string
   frow_string = "f" & fblock & "_frow"
   Range(frow_string).Select

' Which is translated into Range("f1_frow").Select
' f1_frow is a named range in the current worksheet.....
' The sub contains more code, but this is the part that does not work....
end sub.

Any hints appreciated

Mr. Smith
Bob Phillips - 27 Sep 2006 10:34 GMT
Works fine for me. Are you sure that fblock is 1?

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> Hi I try this code, but I will not work.
>
[quoted text clipped - 11 lines]
>
> Mr. Smith
Mr. Smith - 27 Sep 2006 11:58 GMT
Works now....
Needed ActiveSheet.range instead of just Range

thanks anyway Bob

Kind regards
Mr. Smith

> Works fine for me. Are you sure that fblock is 1?
>
[quoted text clipped - 13 lines]
>>
>> Mr. Smith
 
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



©2008 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.