ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help with a transpose please (https://www.excelbanter.com/excel-programming/314746-help-transpose-please.html)

scottwilsonx[_66_]

help with a transpose please
 

Tom, thank you for posting your reply.
I have tried the VBA you sent me:

Option Explicit
Sub TransposeTweek()
Dim vArr As Variant
Dim rw As Long
rw = 1
vArr = Application.Split(Worksheets("sheet1").Cells(rw, 1).Value, "/")
Worksheets("Sheet2").Range("A1:A900").Value
Application.Transpose(vArr)
End Sub

When I ran the macro, I got the message: "Object doesnt support thi
property or method".

Any idea why this would happen? and is there a way to get round this ?

Thanks
Scott

--
scottwilson
-----------------------------------------------------------------------
scottwilsonx's Profile: http://www.excelforum.com/member.php...fo&userid=1112
View this thread: http://www.excelforum.com/showthread.php?threadid=27237


Tom Ogilvy

help with a transpose please
 
Split shouldn't have Application. in front of it. Not sure how I typed
that. Must have been thinking ahead to application.Transpose.

--
Regards,
Tom Ogilvy


"scottwilsonx" wrote in message
...

Tom, thank you for posting your reply.
I have tried the VBA you sent me:

Option Explicit
Sub TransposeTweek()
Dim vArr As Variant
Dim rw As Long
rw = 1
vArr = Application.Split(Worksheets("sheet1").Cells(rw, 1).Value, "/")
Worksheets("Sheet2").Range("A1:A900").Value =
Application.Transpose(vArr)
End Sub

When I ran the macro, I got the message: "Object doesnt support this
property or method".

Any idea why this would happen? and is there a way to get round this ?

Thanks
Scott.


--
scottwilsonx
------------------------------------------------------------------------
scottwilsonx's Profile:

http://www.excelforum.com/member.php...o&userid=11128
View this thread: http://www.excelforum.com/showthread...hreadid=272376





All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com