Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2013, 11:32 AM
funkyfido funkyfido is offline Beginner VBA Windows XP Beginner VBA Office 2007
Novice
Beginner VBA
 
Join Date: Jun 2013
Posts: 24
funkyfido is on a distinguished road
Default Beginner VBA

Hi



I am new to VBA and am looking to automate a simple task.

I currently have a workbook which contains two reports on sheet1. The first report is called members. I want to search for the word "members" and then copy the entire range,across and down to sheet 2 on the same workbook. This range will alter every time I run the report. I have a blank row in between the word "members" and the actual data.

I then have another report, a few blank rows after the above report. i want to search for "premium" and then copy the entire range, across and down to sheet 3 on the same workbook. Again I have a blank row after the work premiums. This range will change every time I run the report.

How do I make my code robust so that regardless of how big my report is I can be sure it will always pick up all the data?
Thanks in advance
Liz
Reply With Quote
  #2  
Old 08-27-2013, 11:35 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Beginner VBA Windows 7 64bit Beginner VBA Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,918
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Hi
you'll have a better chance for an answer in the " Programming" forum.
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Tags
activecell, currentregion, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table- New Beginner JDCCPA Excel 0 04-30-2012 02:30 PM
Beginner VBA Beginner needing help primmer3001 Office 1 08-22-2011 11:28 AM
Beginner VBA Complete beginner needs some help. Biofodder Word VBA 1 03-14-2011 01:49 AM
Beginner VBA HELP...Beginner Leeroy4022 Word VBA 2 02-25-2011 02:16 AM
Just a beginner...be nice please! Tommy Gun Project 1 02-18-2009 03:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft