HTML i need help guys please

Jack in the UK

Well-known Member
Joined
Feb 16, 2002
Messages
3,215
I posted this, thought was good post, but left large spaces between lines>>>

I wrote the code, im learning = this is as is,?? Any ideas??

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>The other way you might wish to UDF is via VBA</title>
<style>
<!--
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0in; margin-right:0in; margin-top:0in}
-->
</style>
</head>

<body>

<p class="MsoNormal"><span style="font-family: Arial">The other way you might
wish to UDF is via VBA, this is a script I wrote to add a A in from of any cell
value less than 10000 i.e. 9999 to 0 will be A999 or A0001</span></p>
<p class="MsoNormal"><span style="font-family: Arial">The function you need is
related to the range but try</span></p>
<p class="MsoNormal">
<span style="font-family: Script; text-decoration: overline underline blink">
<font color="#0000FF" size="3">=JackintheUK_ConvA(A1)</font></span></p>
<p class="MsoNormal">
<span style="font-family: Arial; text-decoration: underline; font-weight: 700">
Put this in VBA by:</span></p>
<p class="MsoNormal"><span style="font-family: Arial">In Excel as normal = Press
together the Alt+F11 keys and let go, you will see a new kind of program appear
this is the Visual Basic for Application Editor (VBE)</span></p>
<p class="MsoNormal"><span style="font-family: Arial">There will be little in
the Project = Project VBA window pane.</span></p>
<p class="MsoNormal"><span style="font-family: Arial">Look for the name of your
sheets, (will say VBA Project (your workbooks name) helps of only on book open
till you get used to its, it like windows explorer you soon see it, but name as
normal</span></p>
<p class="MsoNormal"><span style="font-family: Arial">Select this WkBk *VBA
Project (your workbooks name)* and there will be nothing in it.</span></p>
<p class="MsoNormal"><span style="font-family: Arial">Just below you see a name
bit called Microsoft Excel Objects</span></p>
<p class="MsoNormal"><span style="font-family: Arial">Now right click it
on the name part. </span></p>
<p class="MsoNormal"><span style="font-family: Arial">A pop up appears.</span></p>
<p class="MsoNormal"><span style="font-family: Arial">Choose</span><font color="#FF00FF"><span style="font-family: Arial; text-decoration: blink">
INSERT</span></font>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">And select module, </span>
</font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">A bit of flick and
clicking and you see a new line has appeared, called</span></font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">MODULES / MODULE 1</span></font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">Click on this and paste
in my code I have provided.</span></font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">Don't forget in cells</span></font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">A1 type 666 </span>
</font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">A2 type 10004</span></font></span>
</p>
<p class="MsoNormal"><span style="text-decoration: blink">
<font color="#FF00FF"><span style="font-family: Arial">In B1 type = </span>
</font></span>

<span style="font-family: Script; text-decoration: overline underline blink">
<font color="#0000FF" size="3">=JackintheUK_ConvA(A1) and drag down one.</font></span></p>
<p class="MsoNormal"><span style="font-weight: 400">
<font color="#0000FF" size="3"><span style="font-family: Arial">The results will
be A0666 and 10004</span></font></span><span style="font-family: Arial; color: blue">

</span>Function JackintheUK_ConvA(MyRange As Range) As String

Application.Volatile

MyFormat = ("A0000")

If MyRange < 10000 Then

JackintheUK_ConvA = Format(MyRange.Value, MyFormat)

Else

JackintheUK_ConvA = MyRange.Value

End If

Calculate

End Function

Formula needed on Jacks UDF</p>
<p class="MsoNormal"><span style="font-weight: 400; font-family: Arial">
<font color="#0000FF" size="3">=JackintheUK_ConvA(A1)</font></span></p>

</body>

</html>
 
Hi Jack!

It looks as if using copy/paste from FrontPage has some extra code in there you don't need to worry about for just posting on the board:)

For example, if you want to change the font, you can just type [font face="Tahoma"]Jack[/font] (just change all of the brackets to<>). This will be posted as:<font face="Tahoma">Jack</font>

Also, to make it change size and color, just add to the font tags as [font face="Tahoma" color="#0000FF" size="3"]Jack[/font] to get<font face="Tahoma" color="#0000FF" size="3">Jack</font>

The extra stuff you pasted in there such as
HTML:
, [body], etc. are things only needed for making an entire separate page (right-click on this or any page and choose "View Source". They all start with that.)

Did this help any? Let me know if you have any trouble with it!

Kristy

_________________<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."

[img]http://community.sierra.com/WebX?31@@d21b3@2[/img]</img>
[SIZE=2][COLOR=gray]This message was edited by  Von Pookie on 2002-06-03 19:15 [/COLOR][/SIZE]
 
Hi Jack,
I think "php proglam" of this site is add
Automatically.
So, when we want to write HTML into here, we have to write with in 1 rows.

For example:
In case

<Font Size=5>
This is a
Test
</Font>

to

<Font Size=5>This is a Test </Font>

HTH
 
Cheers guys, me and HTML , well i don't very well, not that i Excel well either.

I am developing to move out of the confined constraints of my poor posts, with the acquisition of a keen eye and heavy software applications, this is on my SCRIPT WRITER.

The desired result is: to make my post as nice and accurate as possible, not Jack_O_Nence and this was part of it, i have a converter, i guess FrontPage would do the same, which i use as well, just my hate of WORD that's all, I also use am extreamly powerful peice of software which cost me a million bar a few cents to develop my posts, thus hope rich wording and complex made simple, Jack hopes.

Adding colour draws the eye to emphasis issues?

OK Kristy, I'm sure we will chat soon over this and ill take you advice without question.

Colo - You say board issues, but why that code is on the money or ill hang the software company, its dead on, i know that, the php program does not like this. So would i be best if that the issue to get php friendly version of FrontPage or similar, more expense but worth it.
 
...i have a converter, i guess FrontPage would do the same, which i use as well, just my hate of WORD that's all...

I thought you were using FrontPage. If I go to your post above and click on the "edit post" button, I can see the code you posted, which says FrontPage in it. :???:

Adding colour draws the eye to emphasis issues?
It can, but it can also be overdone :smile:
 
Thinking your right Kristy im wrong and have not meaning mislead you, well at least tied to.

I use a script editor to make the TEXT not Jack_O_Nence and them YES correct i have wacked into FTP and coloured and copy and paste.. Opps!

My fault and telling porkie pies there, well not really did not think this would matter, WRONG i am.

OK so FTP over cooks it?

I was looking for ease, of use? Not so. Should have known but no try no learn.

My script writter works fine with also a wordeness program that look at GRAMMER Jack seem to not have any of that, this is the extra kit, then to FTP and make pretty and over to MrExcel?? Nope Nope wont like that one.

I have a HTML help book Microsoft press ill lend myself tommorow and work from there.

Kristy - yup looked at the source >>>>> Yikes! Im not going in theres wow!

BTW this i have made in Jack_O_Nence so you can see the difference, and draw some comoparison to my other *quality* post.

YES i have read at least twice and editted and then post.. thisis the Jack_O_Nence we love but best when hes hidden.
 

Forum statistics

Threads
1,224,844
Messages
6,181,294
Members
453,030
Latest member
PG626

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