|
-
Sep 29th, 2003, 09:01 AM
#1
Thread Starter
New Member
VBA excel Range into a variable?
Hello
Does anyone know how i can pass the range (location) of a cell into a variable eg row F5 into x. i have got this far but does not work, what is the correct syntax
x = xlap.ActiveCell.Range
thanks in advance
-
Sep 29th, 2003, 09:24 AM
#2
Addicted Member
x = xlap.ActiveCell.Range
.address
-
Sep 29th, 2003, 09:29 AM
#3
Thread Starter
New Member
i have tried the above but it does not work instead i recieve the error
run time error 450
wrong number of arguments or invalid property assignment
do you think maybe my variable (x) needs to be something other than a string?
-
Sep 29th, 2003, 09:41 AM
#4
Addicted Member
sorry i meant activecell.address
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|