LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default changing merged cells from code

I have a spreadsheet that is protected and mostly locked. I do not have a
password. There is a merged range, I2:H2, where a user can manually input
data. When I record a macro I get code like this:

Range("H2:I2").Select
ActiveCell.FormulaR1C1 = "456"

or

Range("H2:I2").Select
Selection.ClearContents

When I attempt to include this code in my VBA macro I get "Select method
of Range class failed".

So far nothing else I've tried works either. I can neither read nor write
to the merged area from code. Is there anything I can do?

John

P.S. Anyone know how can I search all newsgroup message text using Opera?
The quickfind only appears to search the message title.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 
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
merged cells - code glitch Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 9 October 10th 07 09:27 PM
Autofit Merged cell Code is changing the format of my merged cells JB Excel Discussion (Misc queries) 0 August 20th 07 02:12 PM
Changing the locked propery of merged cells. The Wonder Thing[_3_] Excel Programming 1 October 26th 04 09:08 PM
Code doesn't work on merged cells IC[_2_] Excel Programming 8 September 10th 04 12:55 PM
Code for autofit/merged cells doesn't work Janet[_4_] Excel Programming 1 January 29th 04 02:39 AM


All times are GMT +1. The time now is 07:42 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"