Display the value in a given row of the active column

thatmasonkid

New Member
Joined
Apr 14, 2009
Messages
6
I have built a distribution database that is basically an order entry sheet and a packing list with a lot of unique features for my business.
What I'd like to do to is to be able to click a report button to generate my packing list instead of re-entering data. To achieve this, I need to be able to pull the data from Row 7 of the active column. I've been trying with the limited knowledge I have of VBA, and searching for forums for anything that could help me to no avail.
Further to that, I will be creating a button that opens my packing slip sheet, and places that data into cell j7. This will auto update the packing list using my existing code. I think I can work that part out, but I sure wouldn't turn away any suggestions for that either
I would greatly appreciate any help with this.
Thanks,
Thatmasonkid
 

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Welcome to the Board!

You can populate a cell with that information like this:

Sheets("Packing List").Range("J7").Value = Cells(7, ActiveCell.Column).Value

For updating the rest, you might want to look into using VLOOKUP.

Hope that helps,
 

thatmasonkid

New Member
Joined
Apr 14, 2009
Messages
6
Thanks for the quick reply, I'm not having any luck just yet (i'm now getting errors in some of my code)
I'm going to take some time to play with it and see what I get.
If I can't get anywhere, I'll post again with more detail on my errors.
Thanks again
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Feel free to post your code, but make sure to indicate where you're getting the errors. ;)

Someone will be sure to fix it up for you.
 

thatmasonkid

New Member
Joined
Apr 14, 2009
Messages
6
Thanks for your help, I was able to solve it after a good nights sleep. My problem was that I had the Packing List sheet protected, and I had forgotten to build in an unprotect/protect command to perform the action.
 

Watch MrExcel Video

Forum statistics

Threads
1,101,810
Messages
5,483,045
Members
407,375
Latest member
achusp

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top