Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default setting row in macro

here's what my problem is...

when I use this function in my macro I would like to modify the value
that is set to -R[-10]


"=INDEX([Master.xls]defenition!R6C1:R80C5,
MATCH([Master.xls]Master!R[-10]C[28],[Master.xls]defenition!R6C1:R80C1,),
MATCH(R12C4,[Master.xls]defenition!R6C1:R6C5,))"


I need to make it dynamic.... I change the range everytime it goes in
my FOR loop. I tried doing this R[-(10 + counter)] but it didn't like
that very much :)
what is the syntax that I need to use in order to be able to add on
every pass of the for loop???



thanks

PAbs


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default setting row in macro

Hi pabs, if you would like to a variable in the formula written in VBA
the variable part shoud be divided by a double quote and ampersand a
follows.


Code
-------------------


"=INDEX([Master.xls]defenition!R6C1:R80C5, MATCH([Master.xls]Master!R[" & -1 * (10 + counter) & "]C[28],[Master.xls]defenition!R6C1:R80C1,), MATCH(R12C4,[Master.xls]defenition!R6C1:R6C5,))"


-------------------


--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default setting row in macro

ahh,...that's what I was missing! thanks

Pabs


---
Message posted from http://www.ExcelForum.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
problem with macro setting reza Excel Discussion (Misc queries) 1 June 2nd 10 06:11 AM
macro picture setting Oligo Excel Discussion (Misc queries) 1 March 21st 09 09:55 PM
autofilter macro setting tjb Excel Worksheet Functions 0 June 11th 08 05:36 PM
Setting borders with a macro orquidea Excel Discussion (Misc queries) 2 January 10th 08 05:21 PM
Setting up a Macro Nabeel Excel Worksheet Functions 2 February 25th 06 08:22 PM


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