Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Help with find and replace macro



bhofsetz wrote:
Dave,
You are getting the error message on this line

rOldHds.Select 'TEMP

becase the workbook and worksheet on which you are trying to select
that range are not the active book and sheet.
You would either have to manually select that book and sheet or do it
in the code with:

HeadersBk.Sheets(1).Activate
then
rOldHds.Select 'TEMP

I also noticed that you are counting rows on Sheet(19) and then
selecting the range on Sheet(1). Is this correct?


Thanks! It's working fine now.

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
Macro to Find and Replace R Storey Excel Discussion (Misc queries) 6 December 6th 06 07:04 PM
Find & Replace in VB macro JackC Excel Discussion (Misc queries) 1 August 24th 05 09:22 PM
find replace macro Todd L. Excel Programming 1 December 17th 04 06:09 PM
Find/replace macro VB Newbie Excel Programming 1 November 13th 04 01:48 AM
find and replace macro need help excelguru Excel Programming 3 April 30th 04 04:26 AM


All times are GMT +1. The time now is 11:59 PM.

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"