the rigt syntaz

P

pls123

hi all can anybody show me the right syntax for this..

aWS.Range("A18").Value =
Workbook("@@@@PLT@@@@.xlsm").Sheets("Sheet1").Cells("T &
aWS.Range("A16").Value & ").Value

tytyvm
paolo
 
O

OssieMac

I am assuming that aWS.Range("A16").Value is supposed to be the row number.
If my assumption is correct then you need to realize that when you use the
Cells then the syntax is:- Cells(Row,Column) (the comma is also essential)

It is the reverse of Range("T8") where the column is first.

Note that the space and underscore at the end of the line is a line break in
an otherwise single line of code.

aWS.Range("A18").Value = _
Workbook("@@@@PLT@@@@.xlsm").Sheets("Sheet1") _
.Cells(aWS.Range("A16").Value, "T").Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top