Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike
 
Posts: n/a
Default Print a sheet area to another...

Hi people, i have another question for you.

Is it possible to print some of a sheet area to another sheet or a form?

I have 40 different sheet's in a single workbook. Column A to M is headlines
and row 7 to .......... is input in every sheet.

My question is; After all the input is done the result in column M appears
with text and a background color. Is it possible to print the row's that has
ex. red color and the sheet name into another sheet or a form.

I need a vb code that can find the red color itself and copy that row with
the sheet name to another location no mather if the sheet were it's found is
the active one or not.

After the user has done that he should have the opportunity to send the
result to a printer.

Is it possible?
  #2   Report Post  
Kassie
 
Posts: n/a
Default

Hi Mike

As far as I know, the colour part will not work. It would be better to use
a helper column, with different values. The macro can then check whether
this cell meets the set criteria, and if so, copy it to the other sheet. To
copy the sheet name, read that into a variable, and paste it in the other
sheet.

The printing part is also no problem.

So yes, what you want to do is possible.

"Mike" wrote:

Hi people, i have another question for you.

Is it possible to print some of a sheet area to another sheet or a form?

I have 40 different sheet's in a single workbook. Column A to M is headlines
and row 7 to .......... is input in every sheet.

My question is; After all the input is done the result in column M appears
with text and a background color. Is it possible to print the row's that has
ex. red color and the sheet name into another sheet or a form.

I need a vb code that can find the red color itself and copy that row with
the sheet name to another location no mather if the sheet were it's found is
the active one or not.

After the user has done that he should have the opportunity to send the
result to a printer.

Is it possible?

  #3   Report Post  
Michael
 
Posts: n/a
Default

Hi Kassie.

Well, if the cell's background colour is red the cell value is VH (very
high). You mean that i cant find the colour but i can find the value of the
cell. That is also ok.

Do you have an ex for me

"Kassie" wrote:

Hi Mike

As far as I know, the colour part will not work. It would be better to use
a helper column, with different values. The macro can then check whether
this cell meets the set criteria, and if so, copy it to the other sheet. To
copy the sheet name, read that into a variable, and paste it in the other
sheet.

The printing part is also no problem.

So yes, what you want to do is possible.

"Mike" wrote:

Hi people, i have another question for you.

Is it possible to print some of a sheet area to another sheet or a form?

I have 40 different sheet's in a single workbook. Column A to M is headlines
and row 7 to .......... is input in every sheet.

My question is; After all the input is done the result in column M appears
with text and a background color. Is it possible to print the row's that has
ex. red color and the sheet name into another sheet or a form.

I need a vb code that can find the red color itself and copy that row with
the sheet name to another location no mather if the sheet were it's found is
the active one or not.

After the user has done that he should have the opportunity to send the
result to a printer.

Is it possible?

  #4   Report Post  
Kassie
 
Posts: n/a
Default

Hi Michael,

I will really need a lot more info to be able to give you any coding.
Basically, what you want to do is the following.

Create a variable that can hold the value you want to search for, and one to
hold the name of the destination worksheet?. I think you would want to use
an inputbox to get the value from the user.

varCrit = Inputbox("Enter value to search for") and maybe
Set varWkb = Inputbox("Enter the name of the destination workbook")
You would count the rows on the sheet? Maybe something like

Set myRng = .Range("a2", .Cells(.Rows.Count, "a").End(xlUp))

And then you have to insert code that will test the value of cells in a
specific column against varCrit. If the same then copy and paste it to the
required workbook.

To get started, you can go to tools |Macro|Record new macro, and go through
the motions of what you want to achieve. After stopping the macro, press
<Ctrl<F11 to view the code you have recorded. Insert your specific
requirements and you should be on your way.

If you need more specific assistance, as I say, I will need more information
on what you want to achieve
"Michael" wrote:

Hi Kassie.

Well, if the cell's background colour is red the cell value is VH (very
high). You mean that i cant find the colour but i can find the value of the
cell. That is also ok.

Do you have an ex for me

"Kassie" wrote:

Hi Mike

As far as I know, the colour part will not work. It would be better to use
a helper column, with different values. The macro can then check whether
this cell meets the set criteria, and if so, copy it to the other sheet. To
copy the sheet name, read that into a variable, and paste it in the other
sheet.

The printing part is also no problem.

So yes, what you want to do is possible.

"Mike" wrote:

Hi people, i have another question for you.

Is it possible to print some of a sheet area to another sheet or a form?

I have 40 different sheet's in a single workbook. Column A to M is headlines
and row 7 to .......... is input in every sheet.

My question is; After all the input is done the result in column M appears
with text and a background color. Is it possible to print the row's that has
ex. red color and the sheet name into another sheet or a form.

I need a vb code that can find the red color itself and copy that row with
the sheet name to another location no mather if the sheet were it's found is
the active one or not.

After the user has done that he should have the opportunity to send the
result to a printer.

Is it possible?

  #5   Report Post  
Michael
 
Posts: n/a
Default

Thank's Kassie.

I think this will help me a lot, i just needed a start (i think :-)..)



"Kassie" wrote:

Hi Michael,

I will really need a lot more info to be able to give you any coding.
Basically, what you want to do is the following.

Create a variable that can hold the value you want to search for, and one to
hold the name of the destination worksheet?. I think you would want to use
an inputbox to get the value from the user.

varCrit = Inputbox("Enter value to search for") and maybe
Set varWkb = Inputbox("Enter the name of the destination workbook")
You would count the rows on the sheet? Maybe something like

Set myRng = .Range("a2", .Cells(.Rows.Count, "a").End(xlUp))

And then you have to insert code that will test the value of cells in a
specific column against varCrit. If the same then copy and paste it to the
required workbook.

To get started, you can go to tools |Macro|Record new macro, and go through
the motions of what you want to achieve. After stopping the macro, press
<Ctrl<F11 to view the code you have recorded. Insert your specific
requirements and you should be on your way.

If you need more specific assistance, as I say, I will need more information
on what you want to achieve
"Michael" wrote:

Hi Kassie.

Well, if the cell's background colour is red the cell value is VH (very
high). You mean that i cant find the colour but i can find the value of the
cell. That is also ok.

Do you have an ex for me

"Kassie" wrote:

Hi Mike

As far as I know, the colour part will not work. It would be better to use
a helper column, with different values. The macro can then check whether
this cell meets the set criteria, and if so, copy it to the other sheet. To
copy the sheet name, read that into a variable, and paste it in the other
sheet.

The printing part is also no problem.

So yes, what you want to do is possible.

"Mike" wrote:

Hi people, i have another question for you.

Is it possible to print some of a sheet area to another sheet or a form?

I have 40 different sheet's in a single workbook. Column A to M is headlines
and row 7 to .......... is input in every sheet.

My question is; After all the input is done the result in column M appears
with text and a background color. Is it possible to print the row's that has
ex. red color and the sheet name into another sheet or a form.

I need a vb code that can find the red color itself and copy that row with
the sheet name to another location no mather if the sheet were it's found is
the active one or not.

After the user has done that he should have the opportunity to send the
result to a printer.

Is it possible?



  #6   Report Post  
Kassie
 
Posts: n/a
Default

My plesure Michael. If you need any more advice, just post again!

"Michael" wrote:

Thank's Kassie.

I think this will help me a lot, i just needed a start (i think :-)..)



"Kassie" wrote:

Hi Michael,

I will really need a lot more info to be able to give you any coding.
Basically, what you want to do is the following.

Create a variable that can hold the value you want to search for, and one to
hold the name of the destination worksheet?. I think you would want to use
an inputbox to get the value from the user.

varCrit = Inputbox("Enter value to search for") and maybe
Set varWkb = Inputbox("Enter the name of the destination workbook")
You would count the rows on the sheet? Maybe something like

Set myRng = .Range("a2", .Cells(.Rows.Count, "a").End(xlUp))

And then you have to insert code that will test the value of cells in a
specific column against varCrit. If the same then copy and paste it to the
required workbook.

To get started, you can go to tools |Macro|Record new macro, and go through
the motions of what you want to achieve. After stopping the macro, press
<Ctrl<F11 to view the code you have recorded. Insert your specific
requirements and you should be on your way.

If you need more specific assistance, as I say, I will need more information
on what you want to achieve
"Michael" wrote:

Hi Kassie.

Well, if the cell's background colour is red the cell value is VH (very
high). You mean that i cant find the colour but i can find the value of the
cell. That is also ok.

Do you have an ex for me

"Kassie" wrote:

Hi Mike

As far as I know, the colour part will not work. It would be better to use
a helper column, with different values. The macro can then check whether
this cell meets the set criteria, and if so, copy it to the other sheet. To
copy the sheet name, read that into a variable, and paste it in the other
sheet.

The printing part is also no problem.

So yes, what you want to do is possible.

"Mike" wrote:

Hi people, i have another question for you.

Is it possible to print some of a sheet area to another sheet or a form?

I have 40 different sheet's in a single workbook. Column A to M is headlines
and row 7 to .......... is input in every sheet.

My question is; After all the input is done the result in column M appears
with text and a background color. Is it possible to print the row's that has
ex. red color and the sheet name into another sheet or a form.

I need a vb code that can find the red color itself and copy that row with
the sheet name to another location no mather if the sheet were it's found is
the active one or not.

After the user has done that he should have the opportunity to send the
result to a printer.

Is it possible?

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 do I print the same sheet multiple times with increasing page. C&S Excel Discussion (Misc queries) 4 March 31st 05 09:21 AM
Objects On Sheet Shift after Print Cory Blythe Excel Discussion (Misc queries) 3 March 22nd 05 10:46 PM
Variable print area BOBF Excel Discussion (Misc queries) 2 March 22nd 05 01:47 PM
how do i print a column containing 150 names on 1 sheet of paper . stormey Excel Discussion (Misc queries) 3 February 10th 05 05:01 AM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 07:34 AM.

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

About Us

"It's about Microsoft Excel"