Asked by ambientsbs
at 2024-07-30 16:06:41
Point:500 Replies:2 POST_ID:829173USER_ID:12065
Topic:
VB Script;Microsoft Visual Basic.Net;Miscellaneous Programming
Hello Experts!
I have two VBA functions in an Excel file that I'm using to perform two separate operations. They look like this:
I have two VBA functions in an Excel file that I'm using to perform two separate operations. They look like this:
I use the first function to copy cells from one cell range to another, but only cells that have a numeric value. In this scenario, I only have one row of cells in a range that I'm copying. What I'm looking to do is combine these two functions into one, where I can basically filter multiple rows, based on a range that defines my filter, and then copy ONLY numeric values to another range where the cells are in a different orientation. I know in advance that my filter would always yield only one row of results.
To give an example, I want to take a range of data like A1:F200, filter that list down to one row based on a filter that would be looking at the data in column A. After my range has been filtered and I have one row of data that sits horizontally from say cells A9:F9 in "Sheet 1" I would like to copy only the numeric data to a range in "Sheet 2" to cells I9:I14.
Can someone please tell me how I would do this? Thank you!