Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mallers
 
Posts: n/a
Default How do I edit this macro?

The value of L1 is the row number. I am copying info from vertical to a new
sheet that is horizontal like a database list. This macro is not working an
I need help. Thanks in advance.

ActiveCell.FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("B(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!RC"
Range("C(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("D(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("F(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("G(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("H(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("I(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("J(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[10]C[-8]"
Range("A3").Select

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default How do I edit this macro?

Range"A11").FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("Bl1)").FormulaR1C1 = "=Sheet1!RC"
Range("Cl1").FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("Dl1").FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("Fl1").FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("Gl1").FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("Hl1").FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("Il1").FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("Jl1").FormulaR1C1 = "=Sheet1!R[10]C[-8]"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Mallers" wrote in message
...
The value of L1 is the row number. I am copying info from vertical to a

new
sheet that is horizontal like a database list. This macro is not working

an
I need help. Thanks in advance.

ActiveCell.FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("B(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!RC"
Range("C(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("D(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("F(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("G(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("H(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("I(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("J(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[10]C[-8]"
Range("A3").Select



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How do I edit this macro?

Just a typo alert:

Range("A11").FormulaR1C1 = "=sheet1!R[-1]C[1]"
Range("B11").FormulaR1C1 = "=sheet1!RC"
Range("C11").FormulaR1C1 = "=sheet1!R[3]C[-1]"
Range("D11").FormulaR1C1 = "=sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=sheet1!R[5]C[-3]"
Range("F11").FormulaR1C1 = "=sheet1!R[6]C[-4]"
Range("G11").FormulaR1C1 = "=sheet1!R[7]C[-5]"
Range("H11").FormulaR1C1 = "=sheet1!R[8]C[-6]"
Range("I11").FormulaR1C1 = "=sheet1!R[9]C[-7]"
Range("J11").FormulaR1C1 = "=sheet1!R[10]C[-8]"

And to the OP:

You have a mixture of 11 and l1 (one-one's and ell-one's) in those addresses.
You'll want to be more careful with which you want: BL1 or B11???



Bob Phillips wrote:

Range"A11").FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("Bl1)").FormulaR1C1 = "=Sheet1!RC"
Range("Cl1").FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("Dl1").FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("Fl1").FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("Gl1").FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("Hl1").FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("Il1").FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("Jl1").FormulaR1C1 = "=Sheet1!R[10]C[-8]"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Mallers" wrote in message
...
The value of L1 is the row number. I am copying info from vertical to a

new
sheet that is horizontal like a database list. This macro is not working

an
I need help. Thanks in advance.

ActiveCell.FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("B(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!RC"
Range("C(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("D(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("F(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("G(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("H(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("I(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("J(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[10]C[-8]"
Range("A3").Select


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default How do I edit this macro?

Thanks Dave, I didn't spot that l1 11 differentation, and must admit to not
undesrtanding the OPs point about L1, so in the lightt of your observation I
think he must mean

Range("A" & L1).FormulaR1C1 = "=sheet1!R[-1]C[1]"
Range("B" & L1).FormulaR1C1 = "=sheet1!RC"
Range("C" & L1).FormulaR1C1 = "=sheet1!R[3]C[-1]"
Range("D" & L1).FormulaR1C1 = "=sheet1!R[4]C[-2]"
Range("E" & L1).FormulaR1C1 = "=sheet1!R[5]C[-3]"
Range("F" & L1).FormulaR1C1 = "=sheet1!R[6]C[-4]"
Range("G" & L1).FormulaR1C1 = "=sheet1!R[7]C[-5]"
Range("H" & L1).FormulaR1C1 = "=sheet1!R[8]C[-6]"
Range("I" & L1).FormulaR1C1 = "=sheet1!R[9]C[-7]"
Range("J" & L1).FormulaR1C1 = "=sheet1!R[10]C[-8]"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Dave Peterson" wrote in message
...
Just a typo alert:

Range("A11").FormulaR1C1 = "=sheet1!R[-1]C[1]"
Range("B11").FormulaR1C1 = "=sheet1!RC"
Range("C11").FormulaR1C1 = "=sheet1!R[3]C[-1]"
Range("D11").FormulaR1C1 = "=sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=sheet1!R[5]C[-3]"
Range("F11").FormulaR1C1 = "=sheet1!R[6]C[-4]"
Range("G11").FormulaR1C1 = "=sheet1!R[7]C[-5]"
Range("H11").FormulaR1C1 = "=sheet1!R[8]C[-6]"
Range("I11").FormulaR1C1 = "=sheet1!R[9]C[-7]"
Range("J11").FormulaR1C1 = "=sheet1!R[10]C[-8]"

And to the OP:

You have a mixture of 11 and l1 (one-one's and ell-one's) in those

addresses.
You'll want to be more careful with which you want: BL1 or B11???



Bob Phillips wrote:

Range"A11").FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("Bl1)").FormulaR1C1 = "=Sheet1!RC"
Range("Cl1").FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("Dl1").FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("Fl1").FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("Gl1").FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("Hl1").FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("Il1").FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("Jl1").FormulaR1C1 = "=Sheet1!R[10]C[-8]"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Mallers" wrote in message
...
The value of L1 is the row number. I am copying info from vertical to

a
new
sheet that is horizontal like a database list. This macro is not

working
an
I need help. Thanks in advance.

ActiveCell.FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("B(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!RC"
Range("C(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("D(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("F(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("G(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("H(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("I(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("J(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[10]C[-8]"
Range("A3").Select


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How do I edit this macro?

Ahhhh.

I didn't read the original post. (I usually can get enough info from the
reply--not always, obviously!)

I think you got it!

Bob Phillips wrote:

Thanks Dave, I didn't spot that l1 11 differentation, and must admit to not
undesrtanding the OPs point about L1, so in the lightt of your observation I
think he must mean

Range("A" & L1).FormulaR1C1 = "=sheet1!R[-1]C[1]"
Range("B" & L1).FormulaR1C1 = "=sheet1!RC"
Range("C" & L1).FormulaR1C1 = "=sheet1!R[3]C[-1]"
Range("D" & L1).FormulaR1C1 = "=sheet1!R[4]C[-2]"
Range("E" & L1).FormulaR1C1 = "=sheet1!R[5]C[-3]"
Range("F" & L1).FormulaR1C1 = "=sheet1!R[6]C[-4]"
Range("G" & L1).FormulaR1C1 = "=sheet1!R[7]C[-5]"
Range("H" & L1).FormulaR1C1 = "=sheet1!R[8]C[-6]"
Range("I" & L1).FormulaR1C1 = "=sheet1!R[9]C[-7]"
Range("J" & L1).FormulaR1C1 = "=sheet1!R[10]C[-8]"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Dave Peterson" wrote in message
...
Just a typo alert:

Range("A11").FormulaR1C1 = "=sheet1!R[-1]C[1]"
Range("B11").FormulaR1C1 = "=sheet1!RC"
Range("C11").FormulaR1C1 = "=sheet1!R[3]C[-1]"
Range("D11").FormulaR1C1 = "=sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=sheet1!R[5]C[-3]"
Range("F11").FormulaR1C1 = "=sheet1!R[6]C[-4]"
Range("G11").FormulaR1C1 = "=sheet1!R[7]C[-5]"
Range("H11").FormulaR1C1 = "=sheet1!R[8]C[-6]"
Range("I11").FormulaR1C1 = "=sheet1!R[9]C[-7]"
Range("J11").FormulaR1C1 = "=sheet1!R[10]C[-8]"

And to the OP:

You have a mixture of 11 and l1 (one-one's and ell-one's) in those

addresses.
You'll want to be more careful with which you want: BL1 or B11???



Bob Phillips wrote:

Range"A11").FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("Bl1)").FormulaR1C1 = "=Sheet1!RC"
Range("Cl1").FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("Dl1").FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E11").FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("Fl1").FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("Gl1").FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("Hl1").FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("Il1").FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("Jl1").FormulaR1C1 = "=Sheet1!R[10]C[-8]"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Mallers" wrote in message
...
The value of L1 is the row number. I am copying info from vertical to

a
new
sheet that is horizontal like a database list. This macro is not

working
an
I need help. Thanks in advance.

ActiveCell.FormulaR1C1 = "=Sheet1!R[-1]C[1]"
Range("B(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!RC"
Range("C(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[3]C[-1]"
Range("D(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[4]C[-2]"
Range("E(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[5]C[-3]"
Range("F(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[6]C[-4]"
Range("G(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[7]C[-5]"
Range("H(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[8]C[-6]"
Range("I(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[9]C[-7]"
Range("J(l1)").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[10]C[-8]"
Range("A3").Select


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default How do I edit this macro?


"Dave Peterson" wrote in message
...
Ahhhh.

I didn't read the original post. (I usually can get enough info from the
reply--not always, obviously!)

I think you got it!


We got it!


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
Edit Macro 1st time use sparx Excel Discussion (Misc queries) 1 March 12th 06 04:04 PM
Rookie at linking - need a tudor!!! The Smuffer Excel Worksheet Functions 9 March 7th 06 08:04 PM
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM
How can I edit cell contents with a macro in Excel? Mind the gaps! Excel Discussion (Misc queries) 2 March 23rd 05 08:51 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"