View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein Rick Rothstein is offline
external usenet poster
 
Posts: 5,934
Default Adding ws information to cell in new wb & saving with ws name

You forgot the "dots" in front of the Range calls (for Column C) in your
"To" section (so they reference back to your With statemen)....

..Range("C79") = sht.Range("A1")
..Range("C80") = sht.Range("A2")
..Range("C81") = sht.Range("A3")
..Range("C88") = sht.Range("A4")
..Range("C89") = sht.Range("A5")
..Range("C91") = sht.Range("A6")
..Range("C95") = sht.Range("A7")

--
Rick (MVP - Excel)



"joel" wrote in message
...

I moved the data in the wrong direction

from
sht.Range("A1") = .Range("C79")
sht.Range("A2") = .Range("C80")
sht.Range("A3") = .Range("C81")
sht.Range("A4") = .Range("C88")
sht.Range("A5") = .Range("C89")
sht.Range("A6") = .Range("C91")
sht.Range("A7") = .Range("C95")

to
Range("C79") = sht.Range("A1")
Range("C80") = sht.Range("A2")
Range("C81") = sht.Range("A3")
Range("C88") = sht.Range("A4")
Range("C89") = sht.Range("A5")
Range("C91") = sht.Range("A6")
Range("C95") = sht.Range("A7")


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?u=229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=195354

http://www.thecodecage.com/forumz