Jump to content

Longitudinal section (inputs from excel)


Recommended Posts

vasanthsv84

Goodday Everyone,

 

I have created a vba code for creating Longitudinal section (inputs from excel), also I want to make a gap between the profiles if a row was empty in excel. Can anyone guide me through this!? Thanks

 

Regards,

 

Vasanth. S

Link to post
Share on other sites
vasanthsv84

Hi Bigal thanks for the response, can you please share a sample vba code to find the empty cell in excel. Thanks

Link to post
Share on other sites
vasanthsv84

Hi Bigal, it's ok. I found a way around to it. Thanks for the suggestions.

 

			GPT = Rng.Cells(RowIndex, 10)
            Select Case GPT
              Case "1"
              InsPtsST(0) = 0: InsPtsST(1) = 0: InsPtsST(2) = 0
              Case "2"
              InsPtsST(0) = 0: InsPtsST(1) = -500: InsPtsST(2) = 0
              Case "3"
              InsPtsST(0) = 0: InsPtsST(1) = -1000: InsPtsST(2) = 0
              Case "4"
              InsPtsST(0) = 0: InsPtsST(1) = -1500: InsPtsST(2) = 0
              Case "5"
              InsPtsST(0) = 0: InsPtsST(1) = -2000: InsPtsST(2) = 0
              Case "6"
              InsPtsST(0) = 0: InsPtsST(1) = -2500: InsPtsST(2) = 0
            End Select

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...