Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-22-2023, 09:03 PM
soroush.kalantari soroush.kalantari is offline The set range is unexpectedly changed. Windows 10 The set range is unexpectedly changed. Office 2016
Competent Performer
The set range is unexpectedly changed.
 
Join Date: Jun 2021
Posts: 124
soroush.kalantari is on a distinguished road
Default The set range is unexpectedly changed.


I have written a macro that in part of it, I set the selection (for example, range” AD4 to BC 11”) to” T1” and then make a copy of this selection and paste it in another range (for example, range” BD4 to CC 11”) and then set the new range to another variable. (for example,T4).
Now my problem is when I set T4, the T1 unexpectedly is no longer the old selection (range” AD1 to BC 11”) but has converted to the range I have assigned it to T4 (” BD4 to CC 11”.see the excel attachment. . The code is assigned to blue circle).
Can you guide me on this issue?
Attached Files
File Type: xlsm question.xlsm (89.3 KB, 4 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy/paste into Excel Pro 2013 wraps a row unexpectedly mgl_8 Excel 1 04-30-2018 11:26 PM
The set range is unexpectedly changed. Formats in text boxes in Word 2016 changing unexpectedly PugwashAtNPEU Word 4 05-04-2017 05:53 AM
HELP! Excel background color changing unexpectedly Doug Needham Excel 0 12-08-2016 08:22 AM
Outlook 2010 unexpectedly closes herby325 Outlook 0 07-06-2016 08:44 AM
The set range is unexpectedly changed. Project closes unexpectedly preetsp Project 3 04-22-2014 06:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:53 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