CheckEmoji Community · the emoji forum
🏠 Home 🆕 What's new ❓ Unanswered 🔥 Popular 📡 RSS Members 👥 0 online log in · register
Home › Kyle Johnson2 › Posts

Posts by Kyle Johnson2

559 posts shown.

restlessheron19 said:I was messing around with this example...
HOW TO DELETE MULTIPLE ROWS (EMPTY CELLS) ALL AT ONCE.................
The macro command only wipes out rows inside the table... it doesn't touch the ones below it..
Why's that happening?
The tutorial title is literally...how to delete multiple rows (empty cells) all at once

Yeah, but within a specific data range.

If you want to figure out why, you gotta understand how Microsoft Office—and specifically Excel—actually works. Basic rule: if you want to do anything (like formatting) to some text or cells, you have to tell Excel exactly what you're targeting. You've got to select the text, the row, the column, or the cell first. Once the data is selected, then you can actually do stuff to it.
Same deal here: if you grab the first three rows and delete them, you’ll still end up with the same total number of rows because Excel just replaces the deleted ones with new ones. It'll always maintain that count of 1,048,576 rows (or whatever the limit is), and the same goes for columns.

That tutorial shows a few different ways to kill rows. The old-school way, using GoToSpecial, or running a Macro to clear out empty rows.

When we talk about deleting empty rows, we're talking about a specific range, a table, or a selection. Deleting every other row in the whole sheet would be insane.
1. So, we can target specific rows we want gone. We can select adjacent or non-adjacent rows and wipe them (whether they're empty or not) using the GoToSpecial command (sticking strictly to those specific rows).
2. Picture a table covering the range A2:A1000 filled with data. For whatever reason, there are gaps where some rows are totally blank. Instead of clicking through every single one manually—which sucks when there are tons of them—we can just use a Macro to tell Excel to nukes all empty rows within that specific range. The line of Macro code would look like this:
Code:
(deletes all blank cells in the range A2:A1000)
Range("A2:A1000").SpecialCells(xlCellTypeBlanks).EntireRow.Delete

See, we don't even need to highlight anything because we explicitly told Excel the target is range A2:A1000. The macro will scan that area and kill every row where it doesn't find data. But, just like before, new rows will pop up underneath to make sure the sheet stays full. The row numbers stay the same, but the order of the table rows shifts up.
3. You could also use a macro to tell Excel to delete every empty row in Column D. That'll affect the rest of the rows too, since we're working with entire rows. Unless, of course, you're only trying to clear specific cells in that column.

Try this: set up two tables in Column A. Let's call them tbl1 (A1:A10) and tbl2 (A14:A20). Fill everything in. Now, delete the first five rows and watch what happens to tbl2 (it shifts up) and notice Excel still has its full set of rows ready to go.
restlessheron19 said:I mean, what am I even supposed to say? I don't care about the payment slips... I'm looking for the logic... the code...
how to move specific cells from one sheet to a new sheet..
and I saw this might be a good example to use..............................any advice would be killer..

Since I've been getting slammed with questions on forums and via email, I decided to just drop a fully functional Invoice here, complete with all the Macro commands and formulas ready for download.
Take a look at how it runs, check out the Macro code, and read that tutorial with the explanations. That way you can actually see what you're getting into before deciding what to do. 😉

Fully Functional Excel Invoice
restlessheron19 said:I'm gonna need a ton of modules for this workflow I've got in mind... wait... can I maybe trigger the input instead of using an INPUT button? Like, maybe just by typing a specific character into a cell?
just like how you handled that "checkbox" thing

Like Nicholas King said, you're biting off way more than you can chew here. You're basically trying to build a full-blown reporting database. Look, you *can* do it in Excel, but it's gonna be a massive headache and requires some serious skill. Trying to figure this out one question at a time on forums is gonna take forever. Just check out THIS tutorial on macro commands. It took me over a month to wrap my head around that one (with some help and plenty of Googling). It’s pretty similar to what you’re aiming for.
It covers everything from copying data to another spreadsheet with memory, client databases, printing, etc., etc...

btw: if you're sticking with this, stick to the checkboxes. Use simple functions and formulas. Most importantly? Organize your data properly, because without that, you're just asking for trouble.

Check out my stuff—I've got all the functions and plenty of examples, including VBA. Study it before you dive into anything serious so you don't end up "wasting your damn time." Honestly, it might actually be smarter to just have someone code this for you in Access or a real programming language rather than spinning your wheels. peace
restlessheron19 said:tried tweaking part of the example but couldn't quite nail it..
can I set it up so when I click INPUT 2.. Company B pops up on the log list along with its info..

Don't see where you touched the Macro code, besides just adding another receipt.

Seems like you want to set up multiple receipts with fixed data so you don't have to type everything out—just swap the amounts. Honestly? I wouldn't do it that way. If you've got companies A, B, C, D... just dump them all onto a separate sheet, maybe call it "CLIENTS"
then use the VLOOKUP function on one receipt to pull whatever info you need for a specific company. You just type the company name and the rest of the static info fills itself in. Once the receipt is done, hit the button and the data copies over to the "log" sheet. That way, your "log" sheet stays in order of whenever the receipts were issued, regardless of which company it was for.

If you're dead set on using two different receipts, just copy the Macro into a second Module2 and just swap out the source and destination cell addresses. Name the Macro Download2 and then link it to button2 (Assign Macro)

For tracking clicks visually, just Google it or simply grab the link from the last receipt number you copied.
Douglas Garcia52 said:Since I never actually use Word or anything like it, I was wondering how to set my typing to an A4 page size.

Let's clear one thing up first. Word and WordPad are both text programs, but they aren't the same thing.
What you posted there was written in WordPad. Look, if you have Word, just use it—you'll have way more control over things.
Sarah Brown86 said:I got the Excel one working, but I'm totally stuck on Word. No clue how to move forward... so, I turn on macro recording in Word, hit up numbering, and start typing "Catherine's lists" from 1 to 20 in the lines. Then I hit stop. It works, but I can't actually see the code. 😢

Just press alt + F8, pick the Macro you want, and hit Edit.
Sarah Brown86 said:Write a VBA program for Microsoft Word .....Do the exact same thing in VBA for Microsoft Excel

Check out this beginner tutorial on VBA in Excel.
If you're too lazy to read it online, just grab the tutorial here

- Download the Excel VBA tutorial
Donna Turner34 said:Anyone got a fix?

Probably won't solve everything, but here's a thought.
Try adding a little suffix to those Sheet names you're assigning. If the names are numbers, throw a +1 on there, but if they're text, just tack on a +"1"😉

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$4" Then
ActiveSheet.Name = [D4] + "1"
End If
End Sub

BTW: checking for Sheets

Function wsExists(wksName As String) As Boolean
On Error Resume Next
wsExists = CBool(Len(Worksheets(wksName).Name) > 0)
On Error Goto 0
End Function

Example

Sub test()
If wsExists("form") Then
MsgBox "Got it"
End If
End Sub
Jacob Morris28 said:I still can't wrap my head around how to get it in the right corner instead of the left.

Just double-click the Footer, highlight the number, then hit the Right align button.
Jacob Morris28 said:I have zero clue how to pull this off... Honestly, I’ll probably chuck my PC out the window before I actually figure this out.

Don't be like that. It's not rocket science and nobody's born knowing this stuff. You just gotta put in the work and actually want to learn. Let's take it step by step—check out these links:

- how to learn Word 2003 online for beginners
- download Word 2003 beginner e-book

You should've gone into section 2 and double-clicked the Footer. Look, if that's being a pain, just download this document I whipped up for you. The page numbering starts at one on the second page.

- Starting page numbering from 1 on the second sheet
Jacob Morris28 said:I can't figure out how to move them so they look right: bottom right of the page??

You're looking in the Header when you should be hitting the Footer.

Just kill it in the Header and set it up in the Footer.
restlessheron19 said:got one more question... here's the deal...

Don't take this the wrong way, but it's impossible to read your mind or fix a problem when the description is this vague.

What do you actually mean by "move"? Are we talking Copy or Move?
The best way to get an answer is to just send a sample file. Show me the raw data and what the final result should look like. Use cell comments if you need to explain something. That’s the fastest way to solve anything—you probably could have guessed that from the first question.
Otherwise, I'm just guessing, and I'll probably be miles off from what you actually need.

If you're trying to copy specific cells (with fixed addresses) into a new row on another Sheet, check out this tutorial:

- Copying to a new row on another Sheet

If your issue is similar, there's a Macro in that tutorial you can tweak to fit your needs.
later
restlessheron19 said:if anyone’s got a better way... lay it on me.. maybe throw in an example too..

idk what's up with this forum lately, but I'm logged in half the time, then I try to hit Replay on a post and it just keeps asking for my login over and over.

Let's break this down. Honestly, I think you're making life way harder than it needs to be with that checkbox. Why even bother?

If I'm reading the situation right, I'd just handle it with basic formulas.
Just type input x—or any random char, number, or letter—into cells D10 and D11 and you're golden.

Here's the formula pairs:

I10: =IF(D10<>"";D10;"")
J10: =IF(I10<>"";TRUE;FALSE)

here's the fixed example
restlessheron19 said:...or is there some other way to pull this off?
Like, using one single checkbox to fill 5 different cells with totally different data...

Look, can you just set up an example that actually matches your specific issue? Let's stop guessing and making stuff up.
Nicholas Newman66 said:I need a template for a presentation where the first slide shows the title, but every single slide after that uses the exact same image, regardless of how many slides there are.

Sounds like you're looking for the PowerPoint slide master or just a PowerPoint master slide.
Check out one of these two links and you'll find what you need. Basically, you use the master slide to set a continuous background, kind of like setting a background in Word.
silentfalcon46 said:Hey 🙂
PowerPoint 2007
How do I set it up so objects trigger only when I actually click them, instead of just following the animation order I assigned? :/

Check out this tutorial for PowerPoint—specifically point 1.4.9. Might be what you need.
Walter Jackson48 said:Check this out:
Probably works the same way in Word 2007.

- How to start page numbering on the third page in Word 2007
shadowfox49 said:So, I just get this little dash at the start and then nothing else.

Something messed up with your styles or those preset Bullets. Try one of these:

- nuking your Normal.dot file and just restarting Word. Or
- I'm guessing that "dash" is just how you've got your bullets set up. Try resetting everything to factory defaults (Format => Bullets and numbering => select each one, hit Reset). See if the default Bullets actually work after that.
If that doesn't fix it, go dig through your styles.
shadowfox49 said:Google didn't help, digging through Word options was a bust too. Anyone else got a clue?

Which version of Word? Need more info here—what do you mean "suddenly"? Like, after how many enters...
Pro tip: just type your text normally, hit enter at the end of each line, then highlight everything and slap on a bullet list.
jadedrifter16 said:but when I insert a new column, everything from column C shifts to D, and it automatically updates my formula to = Sheet3!D3.

That’s just how it works. If you move a column on Sheet3, the formula on Sheet1 follows suit because it’s a live link. Excel tracks the location, so if you shove a new column in there, the address updates automatically.

If you want to target specifically whatever is sitting in C3 on Sheet3 regardless of what you do to the columns, try using =OFFSET(Sheet3!A1,2,2)—though even then, things might shift depending on how you play it.
Drop an example of what you're actually trying to do in a specific cell and maybe I can help more.