Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba help...ranges in new sheet etc


Hello,

I have been asked by a friend to help with vb/excel, however i have no
touched vb in my life. I have a background in c/c++, so if someone coul
point out to me what I might need to do or how I would go about it tha
would be great.

Here is the letter from my friend asking for assistance:

What I need help with is writing a macro that will automatically
provide data into a hidden sheet “hide pack summary” from which other
documents can take this data;

1. Sum up the total weight in a carton. E.g. the cells in blue on
the “pack data”.sheet
a. But there can be from 1 up to 8 fish in a carton.
b. The form is not continuous – i.e. need a total over several
sheets. Sheet”pack data”.Range - B22:G52, I22:N52, P22:U52, V22:AB52,
B73:B102, I73:N102, P73:U102, V73:AB102, B124:B153, I124:N153,
P124:U153, V124:AB153, B175:B204, I175:N204, P175:U204, V175:AB204
My thoughts were to use the subtotal(2).
I don’t know how to specify the range(since it changes)
Can I tell it to offset add to a cumulative subtotal if it starts wit

value in the carton column until next carton is reached then paste
value & subtotal(2)=0 ??

2. Within a given range (in orange above), count the number of
cartons that satisfy criteria i.e. match species and processing
description (e.g. YF/GG – which will be given in cell reference) Go
through and do the same for subsequent descriptions. E.g. for every
species and description determine the number of cartons. I had a go a

=COUNTIF(x,x) in excel, and subtotal(x) in visual and combinations of
but no luck.
Logic:
worksheet”hide pack summary”.activate
Range”D2”.activate
While
make activecell=descrip
worksheet”packdata”.select range”G22”.select. and then basically with
IF and IFNOT, then, offset(1,0) to see if descrip= ‘SPECIES/FORM
column’ and if a value in ‘Carton column’then count if not then don’t
count.
When the end of the range is reached
worksheet”hide pack summary”.activate
Spit back solution.
Offset(1row,0column)
Wend
Until blank cell.

Wend


3. Give a total weight for each description ((e.g. YF/GG – which
will be given in cell reference or need be typed in) – I think I may
have solved the problem with =sumif(x,x,x)

4. In ”FOB invoice” provide a summary of this data but only for
species/form combinations that have data. E.g. if YF/GG = 3boxes,
ALB/GG=2 but YF/WH = 0 box then only return YF/GG and ALB/GG data.

My email is available upon request, I would be guessing a copy of th
worksheets are required, if so please email me.

Any assitance is greatly greatly appreciated.

edit, attaching workbook, i didnt attach originally out of respect fo
my friend as it possibly has confidential information.

http://www.wopr.com/w3tfiles/5-496026-x.zi

--
zool
-----------------------------------------------------------------------
zoola's Profile: http://www.excelforum.com/member.php...fo&userid=1017
View this thread: http://www.excelforum.com/showthread.php?threadid=38486

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba help...ranges in new sheet etc


hmm, any ideas, is more information needed or something...why so quite?


--
zoola
------------------------------------------------------------------------
zoola's Profile: http://www.excelforum.com/member.php...o&userid=10170
View this thread: http://www.excelforum.com/showthread...hreadid=384869

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba help...ranges in new sheet etc


please, really needing some help with this

--
zool
-----------------------------------------------------------------------
zoola's Profile: http://www.excelforum.com/member.php...fo&userid=1017
View this thread: http://www.excelforum.com/showthread.php?threadid=38486

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba help...ranges in new sheet etc


Zoola, have you tried to use the Macro Recorder from Excel (Tools
Menu)?. With it you could make the operations you need and then in the
VBA editor watch the instructions Excel used to acomplish the task.

Hope this give you and idea


Regards

Jose Luis
zoola Wrote:
please, really needing some help with this.



--
jose luis
------------------------------------------------------------------------
jose luis's Profile: http://www.excelforum.com/member.php...o&userid=13312
View this thread: http://www.excelforum.com/showthread...hreadid=384869

Reply
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
How to find ranges in a sheet Tornado Excel Programming 1 February 23rd 05 05:31 PM
Copying ranges from one sheet to another Sinobato[_10_] Excel Programming 1 July 30th 04 01:43 PM
Copying ranges from one sheet to another Sinobato[_9_] Excel Programming 0 July 29th 04 03:14 PM
selectively copying ranges from one sheet to second sheet JPTIII Excel Programming 1 December 5th 03 08:02 PM
Combine ranges from 2 sheet into 3rd David Turner Excel Programming 1 July 24th 03 11:57 PM


All times are GMT +1. The time now is 09:35 AM.

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"