help with incorrect macro

saxby146

New Member
Joined
Dec 9, 2016
Messages
8
Hi all,
I am a complete newby to the forum and macros in general so I hope some wizards out there can help PLEASE!!!!!
I have a two page work book for building quotes. page 1 is a datebase of all offerings. page 2 is for quoting clients.
I need to be able to transfer the required data from one to the other. currently the macro in use takes all data from page 1 and copies to page 2. but I need only certain rows of data with a figure in the quantity colum.

I don't know if this makes sense to anyone?

please help,

Many thanks

Dan
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
This is the macro I have running at the mo.

Sub Quote()
'
' Quote Macro
'
' Keyboard Shortcut: Ctrl+q
'
Sheets("Quote Calculator").Range("A1:J111").AdvancedFilter Action:= _
xlFilterCopy, CriteriaRange:=("'Quote Calculator'!Criteria"), _
CopyToRange:=Range("B2:E2"), Unique:=False
End Sub
 
Upvote 0
whats the criteria for it to be copied over?
 
Upvote 0
thanks for the reply,
on page 1, if there is a figure in the quantity column (E) I want it to bring the activity(D) quantity(E) charge (H) and subtotal (J) to page 2 and populate into columns B,C,D and E.
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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