LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Newbie to VBA, Can someone help me?

In the past we have had this workbook that people have been updating
manually and I want to try and automate it to make it a little more
efficient. I am fair with using functions, but am new to using macros
within VBA. The formatting for both sheets cannot change since there
are others events going on with these sheets.

I have a Worksheet TB that will be used to update Worksheet PL within
the same workbook. I want to create a button that will pull off
information from TB and update PL or add an item if the item does not
already exist on PL. The number of records on TB will vary so I need it
to be versatile. Here is how the two sheets are set up (any blank
columns have information present but nothing pertinent to this
scenario):

TB (info starts on row 6)

A B C D E F G H

152-000 Johnson 100 4000
220-800 Adams 204 1 -25000
314-500 Murray 306 -2150
820-000 Curran 426 35400
431-000 Peters 444 6 14000
980-000 Thomas 222 1 24000


PL (info starts on row 11)

A B C D-G H I
311-000 Carson 0 306
314-500 Murray -3000 306
820-000 Curran 40000 426
646-100 Lori 83000 444 26
total 120000
(formula)

PL is to only contain accounts from TB where the value in Wksht TB Col.
C is greater than 299.

Here is what I am envisioning what the button should do:
1) clear the amounts sitting in column D on Wksht PL
2) Find the new accounts on Wksht TB, open a new row at the bottom of
the list on Wksht PL and copy the info into its appropriate columns on
Wksht TB
3) Then Copy-Paste Special-Value the numbers on Wksht TB in Col. C, D
& H into Wksht PL in Col. H, I & D, respectively.

TIA,
TCrow

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Q dredwin Excel Worksheet Functions 3 November 17th 08 09:38 PM
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Newbie harmonicace Excel Programming 1 January 15th 04 06:32 PM
Newbie needs help in VBA david2004 Excel Programming 0 January 8th 04 09:04 PM
Newbie help please Brian Tozer Excel Programming 6 December 14th 03 12:59 AM


All times are GMT +1. The time now is 08:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"