Jump to content

Recommended Posts

Posted

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

Posted

You would use the cell is empty as a loop in a loop, if it was a csv file it would be read-line is ""

Posted

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

Posted

Sorry I dont do much in VBA started to play with it but went back to lisp. Some else will help.

Posted

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

 

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...