Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everyone,
I have this small piece of VB code: Dim con As Constraint Dim CRngSolution As Range Set CRngSolution = Workbooks(filename). _ Worksheets("PT").Range("SolOBJ") CRngSolution.ClearContents 'Write down goal constraints For Each con In vehicleModel.Constraints If con.Name = "Goal_Cons" Then CRngSolution(Cline, Aline).Value = con.Value CRngSolution(Cline, Aline).Value = Val(Left(CRngSolution(Cline, Aline).Value, 5)) End If Next con How can tell the VB code to put the values using "Transpose"? Thanks, Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.Transpose(MyArray)
-- Regards, Tom Ogilvy "Michael" wrote in message om... Hi everyone, I have this small piece of VB code: Dim con As Constraint Dim CRngSolution As Range Set CRngSolution = Workbooks(filename). _ Worksheets("PT").Range("SolOBJ") CRngSolution.ClearContents 'Write down goal constraints For Each con In vehicleModel.Constraints If con.Name = "Goal_Cons" Then CRngSolution(Cline, Aline).Value = con.Value CRngSolution(Cline, Aline).Value = Val(Left(CRngSolution(Cline, Aline).Value, 5)) End If Next con How can tell the VB code to put the values using "Transpose"? Thanks, Mike |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks, but where should I put it in the code? Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't tell - I don't say anything that is obviously either an array or a
range that would need to be transposed. -- Regards, Tom Ogilvy "Michael Sultan" wrote in message ... Thanks, but where should I put it in the code? Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
err ... "say" should be "see"
I can't tell - I don't see anything that is obviously either an array or a multicell contiguous range that would need to be transposed. -- Regards, Tom Ogilvy "Tom Ogilvy" wrote in message ... I can't tell - I don't say anything that is obviously either an array or a range that would need to be transposed. -- Regards, Tom Ogilvy "Michael Sultan" wrote in message ... Thanks, but where should I put it in the code? Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How do I "paste link", and "transpose" at the same time? | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |