The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
So I know nothing about these, or what you can reasonably do with them.
I use Word for articles and I often have to add tags around a lot of titles. Just italicizing won't work, I need to add tags on the fly. I've been doing this by hand, but it's becoming really annoying and disrupts the normal flow of typing.
Is it possible to set up a macro so I can select a bit of text and add the and text to the beginning and end of it? I literally have no idea what you can do with them, I've never used one. If so, how do I do this?
So I know nothing about these, or what you can reasonably do with them.
I use Word for articles and I often have to add tags around a lot of titles. Just italicizing won't work, I need to add tags on the fly. I've been doing this by hand, but it's becoming really annoying and disrupts the normal flow of typing.
Is it possible to set up a macro so I can select a bit of text and add the and text to the beginning and end of it? I literally have no idea what you can do with them, I've never used one. If so, how do I do this?
So I know nothing about these, or what you can reasonably do with them.
I use Word for articles and I often have to add tags around a lot of titles. Just italicizing won't work, I need to add tags on the fly. I've been doing this by hand, but it's becoming really annoying and disrupts the normal flow of typing.
Is it possible to set up a macro so I can select a bit of text and add the and text to the beginning and end of it? I literally have no idea what you can do with them, I've never used one. If so, how do I do this?
I'm sure a quick google will point you to many tutorials. But the easiest way to learn macroing is simply to record what you want to do and then look what VisualBasic wrote down for you.
So I know nothing about these, or what you can reasonably do with them.
I use Word for articles and I often have to add tags around a lot of titles. Just italicizing won't work, I need to add tags on the fly. I've been doing this by hand, but it's becoming really annoying and disrupts the normal flow of typing.
Is it possible to set up a macro so I can select a bit of text and add the and text to the beginning and end of it? I literally have no idea what you can do with them, I've never used one. If so, how do I do this?
in Word? CTRL-i
Bold is CTRL-B, Underline is CTRL-U
Not to be insulting, but...you're kind of retarded, aren't you?
Jam Warrior: I tried looking around but couldn't really find a quick and dirty answer. I mean, I have to do it fairly often, but it's not worth teaching myself all about macros...thought someone might know an easy way to add this in or some sort of existing extension that would work.
Here we go. Might be a more elegant way but this seems to work on a highlighted single word, a block of text would require a bit more effort:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 25/01/2007 by Owner
'
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=""
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=""
End Sub
Or to record it:
Highlight a word mid sentence.
Tools>Record new macro
Press left cursor arrow once
Type ""
Press Ctrl-Right arrow
Press left arrow once
Type ""
Stop recording
Hope that helps, if not well tough :P I'm not in work, you're not my employer and all my experiece is with excel macros anyway!
So I know nothing about these, or what you can reasonably do with them.
I use Word for articles and I often have to add tags around a lot of titles. Just italicizing won't work, I need to add tags on the fly. I've been doing this by hand, but it's becoming really annoying and disrupts the normal flow of typing.
Is it possible to set up a macro so I can select a bit of text and add the and text to the beginning and end of it? I literally have no idea what you can do with them, I've never used one. If so, how do I do this?
in Word? CTRL-i
Bold is CTRL-B, Underline is CTRL-U
Not to be insulting, but...you're kind of retarded, aren't you?
Jam Warrior: I tried looking around but couldn't really find a quick and dirty answer. I mean, I have to do it fairly often, but it's not worth teaching myself all about macros...thought someone might know an easy way to add this in or some sort of existing extension that would work.
Here we go. Might be a more elegant way but this seems to work on a highlighted single word, a block of text would require a bit more effort:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 25/01/2007 by Owner
'
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=""
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=""
End Sub
Or to record it:
Highlight a word mid sentence.
Tools>Record new macro
Press left cursor arrow once
Type ""
Press Ctrl-Right arrow
Press left arrow once
Type ""
Stop recording
Ahhhhh great, I'll try that...thank you.
Quintile: I had a feeling that's all you were trying to do. :P Then again, you never know 'round here.
If you use it at the end of a sentence, then it'll push you backwards over the last letter of the sentence. As it stands, it italicizes the extra 'blank' space.
Give me a minute and I should be able to look up the proper way to put it around the entire selection and not just a word. You'd count the number of words already in the selection and then do the MoveRight n times. I think at least.
If you use it at the end of a sentence, then it'll push you backwards over the last letter of the sentence. As it stands, it italicizes the extra 'blank' space.
Give me a minute and I should be able to look up the proper way to put it around the entire selection and not just a word. You'd count the number of words already in the selection and then do the MoveRight n times. I think at least.
I knew there must be a way to do it properly rather than my fudged way. Counting words etc is far over my head.
If you use it at the end of a sentence, then it'll push you backwards over the last letter of the sentence. As it stands, it italicizes the extra 'blank' space.
Give me a minute and I should be able to look up the proper way to put it around the entire selection and not just a word. You'd count the number of words already in the selection and then do the MoveRight n times. I think at least.
I knew there must be a way to do it properly rather than my fudged way. Counting words etc is far over my head.
Yeah, I thought there was a way to count, but I'm not seeing one.
Here's a brute force one though that'll put the tags around whatever you've got highlighted. It'll kill whatever's top on your clipboard, but Word stores those things a couple levels deep anyway. Still, it's less elegant than I'd like, but I can't find the right command. It's not under Selection. Grrrrr.
Sub Macro6()
'
' Macro6 Macro
' Macro recorded 2007/01/25 by Owner
'
Selection.Copy
Selection.TypeText Text:="[i]"
Selection.PasteAndFormat (wdPasteDefault)
Selection.TypeText Text:="[/i]"
End Sub
Edit: Dammit. That's adding a space for some reason... all the pastes are... why? Stupid Word. You can do every fucking thing, but you always gotta make me hit you.
God damn stupid Word. Now I can't seem to get it to do anything when I record the macro. If I just paste directly in the VB tab, I cannot figure out how to add the keypresses needed to perform the macro.
God damn stupid Word. Now I can't seem to get it to do anything when I record the macro. If I just paste directly in the VB tab, I cannot figure out how to add the keypresses needed to perform the macro.
That I can answer.
Tools:Customize:Commands:Keyboard, then go to the Macros in the categories window.
God damn stupid Word. Now I can't seem to get it to do anything when I record the macro. If I just paste directly in the VB tab, I cannot figure out how to add the keypresses needed to perform the macro.
That I can answer.
Tools:Customize:Commands:Keyboard, then go to the Macros in the categories window.
Woot, thanks. Got that working - but it does, as you said, add a space after the first tag. At least I know a little more about how this works now.
Yeah, in theory, the Selection.Font.Count is what you'd use to count the characters and then create a While loop to move right (or does MoveRight take parameters?) the appropriate number of times. It's been way waaaaaay too long since I did anything in VBasic though, sorry. It took me like 2-3 minutes to even remember how to declare variables.
Yeah, in theory, the Selection.Font.Count is what you'd use to count the characters and then create a While loop to move right (or does MoveRight take parameters?) the appropriate number of times. It's been way waaaaaay too long since I did anything in VBasic though, sorry. It took me like 2-3 minutes to even remember how to declare variables.
Yeah. I could do this in seconds in C++ but I never even looked at macros or VB. I feel retarded right now.
I thought there was a way to save your documents as html so that the word formatting appeared correct if the article was posted on the internet. Haven't used word in years, so I couldn't say for certain.
I thought there was a way to save your documents as html so that the word formatting appeared correct if the article was posted on the internet. Haven't used word in years, so I couldn't say for certain.
Yeah, File:Save As HTML :P
That converts the entire document though and if you're using some weird formatting or some of the more advanced Word things, that'll cause issues. It's also a brute force solution I guess though.
I thought there was a way to save your documents as html so that the word formatting appeared correct if the article was posted on the internet. Haven't used word in years, so I couldn't say for certain.
Yeah, File:Save As HTML :P
That converts the entire document though and if you're using some weird formatting or some of the more advanced Word things, that'll cause issues. It's also a brute force solution I guess though.
And I think it will dump a whole bunch of useless stuff in the header as well, though you might not care about that.
So I know nothing about these, or what you can reasonably do with them.
I use Word for articles and I often have to add tags around a lot of titles. Just italicizing won't work, I need to add tags on the fly. I've been doing this by hand, but it's becoming really annoying and disrupts the normal flow of typing.
Is it possible to set up a macro so I can select a bit of text and add the and text to the beginning and end of it? I literally have no idea what you can do with them, I've never used one. If so, how do I do this?
I'm soooooo lost here. You're writing articles that will be posted in HTML, but you don't want to save as HTML?
I mean, really, the proper solution to this is to format like normal, then copy out of word and paste in to Dreamweaver, then tell it to clean up Word HTML. Or you could write it completely unformatted in Word, then do your formatting properly in an HTML editor.
Posts
in Word? CTRL-i
Bold is CTRL-B, Underline is CTRL-U
I'm sure a quick google will point you to many tutorials. But the easiest way to learn macroing is simply to record what you want to do and then look what VisualBasic wrote down for you.
Not to be insulting, but...you're kind of retarded, aren't you?
Jam Warrior: I tried looking around but couldn't really find a quick and dirty answer. I mean, I have to do it fairly often, but it's not worth teaching myself all about macros...thought someone might know an easy way to add this in or some sort of existing extension that would work.
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 25/01/2007 by Owner
'
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=""
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeText Text:=""
End Sub
Or to record it:
Highlight a word mid sentence.
Tools>Record new macro
Press left cursor arrow once
Type ""
Press Ctrl-Right arrow
Press left arrow once
Type ""
Stop recording
Hope that helps, if not well tough :P I'm not in work, you're not my employer and all my experiece is with excel macros anyway!
haha, just really bad at jokes
Ahhhhh great, I'll try that...thank you.
Quintile: I had a feeling that's all you were trying to do. :P Then again, you never know 'round here.
Selection.MoveLeft Unit:=wdCharacter, Count:=1
If you use it at the end of a sentence, then it'll push you backwards over the last letter of the sentence. As it stands, it italicizes the extra 'blank' space.
Give me a minute and I should be able to look up the proper way to put it around the entire selection and not just a word. You'd count the number of words already in the selection and then do the MoveRight n times. I think at least.
I knew there must be a way to do it properly rather than my fudged way. Counting words etc is far over my head.
EDIT: I mean, I know that this probably requires just as much typing as writing , but at least it doesn't require using the mouse to select.
Here's a brute force one though that'll put the tags around whatever you've got highlighted. It'll kill whatever's top on your clipboard, but Word stores those things a couple levels deep anyway. Still, it's less elegant than I'd like, but I can't find the right command. It's not under Selection. Grrrrr.
Edit: Dammit. That's adding a space for some reason... all the pastes are... why? Stupid Word. You can do every fucking thing, but you always gotta make me hit you.
That I can answer.
Tools:Customize:Commands:Keyboard, then go to the Macros in the categories window.
Woot, thanks. Got that working - but it does, as you said, add a space after the first tag. At least I know a little more about how this works now.
Yeah. I could do this in seconds in C++ but I never even looked at macros or VB. I feel retarded right now.
That converts the entire document though and if you're using some weird formatting or some of the more advanced Word things, that'll cause issues. It's also a brute force solution I guess though.
I'm soooooo lost here. You're writing articles that will be posted in HTML, but you don't want to save as HTML?
I mean, really, the proper solution to this is to format like normal, then copy out of word and paste in to Dreamweaver, then tell it to clean up Word HTML. Or you could write it completely unformatted in Word, then do your formatting properly in an HTML editor.