VBA help please

IEvansNH

New Member
Joined
Mar 28, 2013
Messages
12
Hello all,

As my first post, I'm looking for some help creating a macro for a summary page in a workbook. I did some searches, but I don't think the wording of my inquiry was effective.

Here's the jist; I have a 5 tab worksheet where sheets 2-5 have a lot of data, but only some of the data is needed for the summary. Column A has names, column C has a product name and column K has data that, if the value is greater than one, along with the product name and their name, need to be carried to specific columns in the summary worksheet. The intent is to have all of the information in sheets 2-5 updated weekly and once pasted, the macro would update the specifics automatically.

I'm a newb, but have a keen interest in developing my skills here. Hope someone can guide me a bit.
 
Hmmmmm, only thing that comes to mind is perhaps you assigned an Upper case A to the code and are doing ctrl + a instead of ctrl + shift + a on the sheet.

Assigning to a Forms control button is always a good option.

What if anything, do you experience with ctrl + q? Even with an empty sheet you should have a mild alert sound from the Clear event.

Howard
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
So I can run the macro by opening the macro box and hitting run, not by using ctrl+a, producing product results on sheet 1. If for each product listed across the top of the summary page, I wanted to show the actual number of units listed in column K, where would I make that adjustment?
 
Upvote 0
OK, so instead of the text ("Product A", etc) in column C of data pages dispersed accross sheet 1, you want the numbers in column K of data pages dispersed accross sheet 1.

Is this example correct?

If Sheet 2 cell A4 = Jim
Sheet 2 cell C4 = "Product C"
Sheet 2 cell E4 = 03801
Sheet 2 cell K4 =10

Then Sheet 1 A5 = Jim
Sheet 1 G5 = 10 (G5 Header is Product C)
Sheet 1 S 5 = 03801

Howard
 
Upvote 0
If my previous post question is TRUE then change

This

.Cells(lNextRow, vP(1)) = wks.Cells(rng.Row, "C")

to this

.Cells(lNextRow, vP(1)) = wks.Cells(rng.Row, "K")

It's about 45 lines down in the code from Sub.... (count white spaces a a line)

Howard
 
Upvote 0
In reviewing both of your comments, I made the change to ctrl+a for the action request, but I don't see anything happening. I saved the change and tried to run it. What am I missing?

Possibly internal shortcut confusion? CTRL-A is the built-in shortcut for "Select All"
 
Upvote 0
In Alphabetical order, These are what I know of that you should stay away from when selecting your shortcut.

CTRL-ASelect All
CTRL-BBold
CTRL-CCopy
CTRL-DFill Down
CTRL-FFind
CTRL-GGo To
CTRL-HReplace
CTRL-IItalics
CTRL-KHyperlink
CTRL-LCreate List
CTRL-NNew File
CTRL-OOpen File
CTRL-PPrint
CTRL-RFill Right
CTRL-SSave File
CTRL-UUnderline
CTRL-VPaste
CTRL-XCut
CTRL-YRedo
CTRL-WClose Workbook
CTRL-ZUndo

<tbody>
</tbody>

Not much less after all that. (Big eye roll @ Microsoft)
 
Last edited:
Upvote 0
Good info, never knew there were that many.

I'll probably just quit using them.

Thanks,
Howard
 
Upvote 0
Howard, you have it correct. Sorry I didn't reply sooner, I never got notification that you posted.
 
Upvote 0
<Howard, you have it correct.>

Is the correct part about Uppercase A

OR

The sheet transfer senario I asked about

OR

Both?

And have you made the line 45 correction in the code from C to K?

Is the workbook working for as you like?

Howard
 
Upvote 0
So the "a" that I placed is a lowercase, not an upper. I changed it to "J" but it still doesn't run the macro. I did get the line changed for the sheet transfer and the data from K is transferring
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,039
Members
448,940
Latest member
mdusw

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