If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Replaceing an array

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-06, 11:31
Jay59 Jay59 is offline
Registered User
 
Join Date: Sep 2006
Posts: 162
Replaceing an array

Any way to remove the array like so

I have cells B2:F2 with this forumla.

{=TRANSPOSE('Data 1'!B66:B70)}


I want a the cells to convert to this

B2=B66
C2=B67
D2=B68
E2=B69
F2=B70


I need a vba snippet to do this across a large range. I know I could edit each cell but there is 62500 cells.
Reply With Quote
  #2 (permalink)  
Old 10-10-06, 04:00
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Jay,

One way would be to have a couple of nested loops. Such as,
for i = 1 to 250
for j = 1 to 250
create the new formula using Range/Cells .Formula / .FormulaR1C1 = "new formula"
next j
next i

For simplicity, if you post the range details someone might detail it if you need.

regards,
Fazza

Last edited by Fazza; 10-10-06 at 04:03.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On