Problems with PRE tag

kkknie

Well-known Member
Joined
Apr 29, 2002
Messages
677
When I use the <PRE> tag to enclose some code, I have problems with the lines after the closing </PRE> tag running off the page. I have to edit my post and add manual line breaks.

I've tried using the BB CODE tag, but don't like that it shows up so small.

Any advice?
 
I assume this post is an example of your problem?

Ok. This is the code you posted in the post mentioned above:<PRE>Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Column = 2 And _
Target.Row >= 8 And _
Target.Value<> "" Then

Range("E5").Value = Target.Value

End If

End Sub</PRE>

I'm not quite sure about the running off of the page bit, but sometimes I have problems with it not putting a blank line between End Sub and what I'm typing.

Ok. I see what you're saying now. Before I edited this, the paragraph above was running out of the frame. I fixed it by putting the PRE tags in the same line as the code, not putting a return and then adding the tag.

If that doesn't make sense, hit edit on my post here. You can't edit it, but you can see what was typed in and how it was formatted.

Hope this helps,
_________________<font color=red>~*</font><font color=blue>Kristy</font><font color=red>*~</font>

"Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam."

vonpookie.jpg
</img>
This message was edited by Von Pookie on 2002-06-11 11:50
This message was edited by Von Pookie on 2002-06-11 11:52
 
Much thanks! Might it not be a good idea to add this to the FAQs?

K
 
Well, it's not specifically mentioned, but if you check the BBCode portion of the FAQ, it shows the usage of the board code tag, and it's on the same line with the text, as I formatted the above code with the PRE tags.

I guess that could be some sort of example for the time being, at least?
 

Forum statistics

Threads
1,224,846
Messages
6,181,307
Members
453,031
Latest member
Chris_1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top