• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Macro to copy a Relative Address across a range and then to convert those Relative Addresses to Absolute Addresses|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Macro to copy a Relative Address across a range and then to convert those Relative Addresses to Absolute Addresses|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosMacro to copy a Relative Address ac…
sp_PrintTopic sp_TopicIcon
Macro to copy a Relative Address across a range and then to convert those Relative Addresses to Absolute Addresses
Avatar
Gavin Wehlburg

New Member
Members
Level 0
Forum Posts: 2
Member Since:
July 27, 2015
sp_UserOfflineSmall Offline
1
April 11, 2018 - 10:54 pm
sp_Permalink sp_Print
I have attached a small demo of an large reporting worksheet and would be grateful for help.
 
I have needed to update the spreadsheet as the program generating the original input data, in its new version, generates a wider range of useful information, which is input to the reporting worksheet.
 
I am trying to reduce the editing and relinking work - the attached Worksheet contains the demo and troubleshooting Macro's.
 
Process Overview:
We import the data, tidy it up and when in the correct structure, copy it into the respective entry point Tab in the reporting worksheet. This then feeds the reporting template. For each section we have a respective Tab of Reporting.
 
In reconstructing, I am linking the reporting section Relative Address, copying these for "Probability and Impact" across a range of 5 further sequential columns, linking them to their data "Relatively". I then convert the addresses to absolute.
 
The Macro has been structured to automate this and save key strokes.
 
 
Example:
The example is attached in its clean format with 3 Prob / Impact sets of Rows where the first column is linked Relatively
 
A relative duplicate is placed below to use in copying back across the cells to restore original state and blank cells copied to clean up - the process can recommence again for testing
 
The Macro was split into its two component macro parts to assist in trouble shooting.
 
Copying the Relative Cell Address across the range from the start point in both “original position” where the Macro was created and in subsequent positions works fine. = Cntrl+r
 
The second component of then converting the Relative to Absolute, results in the Cells receiving the first range of Absolute addressing = Cntrl+t - does not work. When this Macro runs it converts all to Absolute but it gives each cell the Absolute addresses that were used in the first instance when creating the Macro?? and not those that were created correctly from Cntrl+r and relative to the Address inserted and correctly copied across the range. So it does not start from a new position and run its set of commands correctly.
 
At this stage I do not know VBA and have used the Macro Recorder to do this. 
 
I would be grateful for assistance in resolving and consolidating into one single Macro
 
Kind regards
Gavin
 
 
Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
April 14, 2018 - 12:11 pm
sp_Permalink sp_Print

Hi Gavin

There is no attachment.

Avatar
Gavin Wehlburg

New Member
Members
Level 0
Forum Posts: 2
Member Since:
July 27, 2015
sp_UserOfflineSmall Offline
3
April 16, 2018 - 2:25 pm
sp_Permalink sp_Print

My apologies, I have now uploaded a zip file containing the Spreadsheet and Macro which is permitted as an upload.

Kind regards

Gavin

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
April 16, 2018 - 4:28 pm
sp_Permalink sp_Print

Hi Gavin

Can you show us your expected results?

Show us the formulas you are expecting in the respective cells.

It will be easier to understand.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Tristram Sexton, Christopher Anderson
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6200
Posts: 27182

 

Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.